Function at 0x100457f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10363252
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10525930]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
mov dword [esp + 0x130], ebx
call fcn.10047a10
add esp, 4
mov byte [esp + 0x12c], 1
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x114]
call fcn.100313f0
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x20], edi
jge 0x10045d49
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 4
mov dword [esp + 0x18], ecx
call fcn.1005c450
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.10016d30
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov dword [eax], ebx
mov byte [esp + 0x12c], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100458a9
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10045ca6
mov edi, 0x10
lea ebp, [edi - 1]
push 0x104c2ef4
push 0x104ca1f4
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x68], esp
push str.._brom_boot_rom_logic.cpp
call fcn.10003680
lea esi, [esp + 0x74]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [esp + 0xf8]
mov byte [esp + 0x13c], 3
call fcn.10003680
push esi
push eax
lea eax, [esp + 0xbc]
push eax
mov byte [esp + 0x144], 4
call fcn.10016ef0
add esp, 0xc
push eax
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x140], 5
call fcn.10016fa0
add esp, 0xc
push eax
lea edx, [esp + 0xd4]
push edx
mov byte [esp + 0x13c], 6
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x138], 7
call fcn.10016fa0
add esp, 0xc
mov esi, eax
mov byte [esp + 0x12c], 8
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x110]
push edx
call fcn.10016de0
add esp, 0xc
mov byte [esp + 0x12c], 9
mov ecx, dword [eax + 4]
add ecx, 4
push str.get_chip_id_failed.
mov ebx, 0x13
call fcn.10013de0
mov ebx, dword [esi + 0x18]
cmp dword [esi + 0x1c], edi
jb 0x100459b9
mov esi, dword [esi + 8]
jmp 0x100459bc
add esi, 8
push esi
mov ecx, eax
call fcn.10013de0
lea ecx, [esp + 0x108]
mov byte [esp + 0x12c], 8
call fcn.100132f0
mov byte [esp + 0x12c], 7
cmp dword [esp + 0xa4], edi
jb 0x100459f9
mov eax, dword [esp + 0x90]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.10239250
mov eax, dword [esp + 0x88]
cmp eax, 0xfffffffd
je 0x10045a4e
cmp eax, ebx
je 0x10045a47
jmp 0x10045a30
mov dword [eax], ebx
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 4]
mov dword [esp + 0x88], eax
cmp eax, ebx
jne 0x10045a30
mov dword [esp + 0x88], ebx
lea ecx, [esp + 0x18]
call fcn.10239290
mov byte [esp + 0x12c], 6
cmp dword [esp + 0xe4], edi
jb 0x10045a78
mov edx, dword [esp + 0xd0]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x30]
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.10239250
mov eax, dword [esp + 0xc8]
cmp eax, 0xfffffffd
je 0x10045ace
cmp eax, ebx
je 0x10045ac7
jmp 0x10045ab0
mov dword [eax], ebx
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc8], eax
cmp eax, ebx
jne 0x10045ab0
mov dword [esp + 0xc8], ebx
lea ecx, [esp + 0x2c]
call fcn.10239290
mov byte [esp + 0x12c], 5
cmp dword [esp + 0x84], edi
jb 0x10045af5
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.10239250
mov eax, dword [esp + 0x68]
cmp eax, 0xfffffffd
je 0x10045b35
cmp eax, ebx
je 0x10045b31
nop
mov dword [eax], ebx
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 4]
mov dword [esp + 0x68], eax
cmp eax, ebx
jne 0x10045b20
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x40]
call fcn.10239290
mov byte [esp + 0x12c], 4
cmp dword [esp + 0xc4], edi
jb 0x10045b5f
mov eax, dword [esp + 0xb0]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x48]
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.10239250
mov eax, dword [esp + 0xa8]
cmp eax, 0xfffffffd
je 0x10045bae
cmp eax, ebx
je 0x10045ba7
nop
mov dword [eax], ebx
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx + 4]
mov dword [esp + 0xa8], eax
cmp eax, ebx
jne 0x10045b90
mov dword [esp + 0xa8], ebx
lea ecx, [esp + 0x44]
call fcn.10239290
mov byte [esp + 0x12c], 3
cmp dword [esp + 0x104], edi
jb 0x10045bd8
mov edx, dword [esp + 0xf0]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0x108], ebp
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
call fcn.10239250
mov eax, dword [esp + 0xe8]
cmp eax, 0xfffffffd
je 0x10045c2e
cmp eax, ebx
je 0x10045c27
jmp 0x10045c10
mov dword [eax], ebx
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 4]
mov dword [esp + 0xe8], eax
cmp eax, ebx
jne 0x10045c10
mov dword [esp + 0xe8], ebx
lea ecx, [esp + 0x38]
call fcn.10239290
mov byte [esp + 0x12c], 2
cmp dword [esp + 0x64], edi
jb 0x10045c52
mov ecx, dword [esp + 0x50]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.10239250
mov eax, dword [esp + 0x48]
cmp eax, 0xfffffffd
je 0x10045c8b
cmp eax, ebx
je 0x10045c87
mov dword [eax], ebx
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
mov dword [esp + 0x48], eax
cmp eax, ebx
jne 0x10045c76
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x30]
call fcn.10239290
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x100458bd
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0x12c], 1
cmp eax, ebx
je 0x10045cbf
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x14], ebx
mov byte [esp + 0x12c], bl
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x10045cf8
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10045cf8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10045cf8
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x12c], 0xffffffff
mov esi, dword [esp + 0x13c]
cmp esi, ebx
je 0x10045e11
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10045e11
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10045e11
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x10045e11
mov ecx, dword [esp + 0x138]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x144]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x144]
mov dword [esp + 0x44], esp
cmp eax, ebx
je 0x10045d7c
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
movzx edx, word [esp + 0x11c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x13c]
push edx
push eax
call fcn.100d4040
mov byte [esp + 0x12c], bl
mov esi, dword [esp + 0x28]
mov edi, eax
cmp esi, ebx
je 0x10045dd1
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10045dd1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10045dd1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0x12c], 0xffffffff
mov esi, dword [esp + 0x13c]
cmp esi, ebx
je 0x10045e11
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10045e11
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10045e11
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret