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

Disassembly:
push 0xffffffffffffffff
push 0x4b24aa
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce0a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
cmp dword [0x513a20], esi
je 0x405906
call fcn.00460810
cmp dword [0x513a48], esi
je 0x405913
call fcn.00460810
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x1c], esi
call fcn.0040c750
mov dword [esp + 0x80], esi
mov eax, dword [0x4d246c]
mov edi, dword [eax + 4]
mov esi, dword [edi]
mov ebp, eax
mov dword [esp + 0x38], eax
jmp 0x405940
cmp ebp, dword [esp + 0x38]
jne 0x405c3d
cmp esi, edi
sete al
test al, al
sete al
test al, al
je 0x405991
cmp esi, dword [ebp + 4]
je 0x40598c
mov ecx, dword [esi + 8]
mov dx, word [ecx]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ebx, [esp + 0x5c]
mov word [esp + 0x30], dx
mov dword [esp + 0x34], 0xffffffff
call fcn.0040c870
cmp esi, dword [ebp + 4]
je 0x40598c
mov esi, dword [esi]
jmp 0x405940
jmp fcn.00417770
mov eax, dword [0x4d246c]
mov esi, dword [eax + 4]
mov ecx, dword [esi]
mov edx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], eax
lea ecx, [ecx]
cmp edx, dword [esp + 0x40]
jne 0x405c3d
cmp ecx, esi
sete al
test al, al
sete al
test al, al
je 0x405c13
cmp ecx, dword [edx + 4]
je 0x40598c
mov eax, dword [ecx + 8]
cmp eax, dword [0x4d2450]
mov dword [esp + 0x14], eax
je 0x405bea
call fcn.00411990
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov byte [esp + 0x80], 1
mov eax, dword [0x4d2450]
movzx ecx, word [eax]
lea edx, [esp + 0x48]
push edx
push ecx
call fcn.00405640
mov ecx, dword [esp + 0x54]
mov ebp, dword [ecx]
add esp, 8
mov ebx, ecx
jmp 0x405a20
cmp ebp, ebx
sete al
test al, al
sete al
test al, al
je 0x405ac5
cmp ebp, ecx
je 0x405c04
mov esi, dword [ebp + 8]
mov edi, dword [0x4d2450]
call fcn.00406550
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x405a61
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
je 0x405c04
mov ebp, dword [ebp]
jmp 0x405a20
mov dx, word [ecx]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x64]
push ecx
mov word [esp + 0x38], dx
mov dword [esp + 0x3c], esi
call fcn.0040ac10
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x4c]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x50], edi
je 0x405ab6
mov esi, dword [eax]
push eax
call fcn.00481c39
mov ecx, dword [esp + 0x50]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x405aa1
push ecx
call fcn.00481c39
mov dword [esp + 0x50], edi
jmp 0x405bdf
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
lea edx, [esp + 0x54]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov esi, ecx
lea esp, [esp]
xor ebx, ebx
cmp edx, ebx
je 0x405c0e
lea ecx, [esp + 0x54]
cmp edx, ecx
jne 0x405c0e
cmp eax, esi
sete cl
test cl, cl
sete cl
test cl, cl
je 0x405b27
cmp eax, dword [edx + 4]
je 0x405c09
lea edx, [esp + 0x28]
mov dword [eax + 0x10], 0xffffffff
call fcn.00418430
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
jmp 0x405ae0
mov edi, dword [0x4d2450]
lea ecx, [esp + 0x54]
call fcn.0040c7c0
mov ecx, dword [esp + 0x14]
mov dword [eax], 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x4d2450]
mov dword [esp + 0x20], ebx
movzx edx, word [ecx]
push ebx
push edx
push eax
call fcn.00405730
add esp, 0x14
cmp eax, ebx
je 0x405b98
push eax
call fcn.004065d0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x405b79
call fcn.00460810
mov ecx, dword [esp + 0x14]
mov dx, word [ecx]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0x40], dx
mov dword [esp + 0x44], esi
call fcn.0040ac10
mov byte [esp + 0x80], 0
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x50], ebx
je 0x405bd5
jmp 0x405bc0
mov esi, dword [eax]
push eax
call fcn.00481c39
mov ecx, dword [esp + 0x50]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x405bc0
push ecx
call fcn.00481c39
mov dword [esp + 0x50], ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
cmp ecx, dword [edx + 4]
je 0x40598c
mov eax, dword [ecx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov ecx, eax
jmp 0x4059b0
jmp fcn.00417a60
jmp fcn.004182d0
jmp fcn.00418340
mov dword [esp + 0x80], 0xffffffff
lea eax, [esp + 0x54]
call fcn.00412310
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
jmp fcn.004177e0