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

Disassembly:
push 0xffffffffffffffff
push 0x4ea790
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x64], ebx
cmp eax, ebx
jne 0x45c3c6
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45c502
mov esi, str.Menu
call fcn.00472da0
mov ebp, eax
cmp ebp, ebx
jne 0x45c3f7
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45c502
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
mov ecx, ebp
call eax
cmp eax, ebx
je 0x45c480
lea edi, [eax + 0x2c]
mov esi, str.name
call fcn.00474270
cmp eax, ebx
je 0x45c41e
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x45c420
xor eax, eax
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00466b70
add esp, 8
mov byte [esp + 0x64], 1
mov ecx, dword [esp + 0x74]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x45c526
mov edx, dword [esp + 0x70]
push ecx
push edx
call fcn.004c9c08
add esp, 8
cmp eax, ebx
je 0x45c530
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, str.Menu
mov eax, ebp
call fcn.00472df0
mov ebp, eax
cmp ebp, ebx
jne 0x45c3f7
lea ecx, [esp + 0x38]
push ecx
call fcn.0043f060
mov edx, dword [esp + 0x6c]
add edx, 0xc8
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 3
call fcn.0045cc60
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
push edx
lea eax, [esi + 8]
push eax
mov dword [esi + 4], ecx
call fcn.0045c820
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x20], ecx
lea esi, [esp + 0x38]
call fcn.0043ece0
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45c50e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc
push 0x80004005
call fcn.00406e60
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, ebp
call fcn.0045c0d0
add esp, 8
add esi, 0xc8
push esi
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 2
call fcn.0045cc60
mov edx, dword [esp + 0x14]
mov esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + 8]
push edx
mov dword [esi + 4], eax
call fcn.0045c820
mov eax, dword [esp + 0x34]
mov dword [esi + 0x20], eax
lea esi, [esp + 0x14]
call fcn.0043ece0
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c5aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c5d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x45c510