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

Disassembly:
push 0xffffffffffffffff
push 0x4a3840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0xd8]
xor ebx, ebx
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0xd4], ebx
call fcn.0040f9a0
mov esi, dword [esp + 0xe4]
mov eax, dword [esp + 0x94]
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x70], ebx
mov word [esi], bx
je 0x4058fe
mov dword [esp + 0xa0], eax
jmp 0x405906
mov byte [esp + 0x9d], 1
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x8c]
cmp dword [ecx], ebx
je 0x405d3c
cmp eax, dword [esp + 0xa0]
jne 0x405935
mov cl, byte [esp + 0xa4]
test cl, cl
jne 0x405d3c
inc word [esi]
mov cx, word [eax + 0x18]
cmp word [esp + 0xdc], cx
mov dword [esp + 0x10], ebx
jg 0x405d14
mov cx, word [eax + 0x14]
cmp word [esp + 0xe0], cx
jl 0x405d14
mov cx, word [eax + 0x1a]
cmp word [esp + 0xde], cx
jg 0x405d14
mov cx, word [eax + 0x16]
cmp word [esp + 0xe2], cx
jl 0x405d14
lea edx, [eax + 0x2c]
mov dword [esp + 0x34], edx
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [edx]
cmp eax, ebx
je 0x40599b
mov eax, dword [eax]
jmp 0x40599d
xor eax, eax
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x3c], ecx
je 0x4059ab
mov eax, dword [ecx]
jmp 0x4059ad
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
je 0x4059c9
mov dword [esp + 0x48], ecx
jmp 0x4059ce
mov byte [esp + 0x45], 1
mov byte [esp + 0x4c], 0
cmp dword [edx], ebx
je 0x405d0d
cmp ecx, dword [esp + 0x48]
jne 0x4059ed
mov al, byte [esp + 0x4c]
test al, al
jne 0x405d0d
mov edi, dword [esp + 0x10]
lea edx, [esp + 0xc0]
inc edi
push edx
mov dword [esp + 0x14], edi
mov ebp, ecx
call fcn.00405f40
mov cx, word [eax + 4]
cmp word [esp + 0xdc], cx
jg 0x405cf7
mov cx, word [eax]
cmp word [esp + 0xe0], cx
jl 0x405cf7
mov cx, word [eax + 6]
cmp word [esp + 0xde], cx
jg 0x405cf7
mov ax, word [eax + 2]
cmp word [esp + 0xe2], ax
jl 0x405cf7
lea edx, [ebp + 0x20]
mov dword [esp + 0x50], edx
mov eax, dword [edx]
mov dword [esp + 0x54], eax
mov eax, dword [edx]
cmp eax, ebx
je 0x405a63
mov eax, dword [eax]
jmp 0x405a65
xor eax, eax
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x58], ecx
je 0x405a73
mov eax, dword [ecx]
jmp 0x405a75
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x60], 0
mov byte [esp + 0x61], 0
je 0x405a91
mov dword [esp + 0x64], ecx
jmp 0x405a96
mov byte [esp + 0x61], 1
mov byte [esp + 0x68], 0
cmp dword [edx], ebx
je 0x405cf7
cmp ecx, dword [esp + 0x64]
jne 0x405ab5
mov al, byte [esp + 0x68]
test al, al
jne 0x405cf7
mov dl, byte [ecx + 6]
lea eax, [esp + 0xb0]
shr dl, 6
and dl, 1
push eax
mov esi, ecx
mov byte [esp + 0x70], dl
call fcn.0043d1f0
mov cx, word [eax + 4]
cmp word [esp + 0xdc], cx
jg 0x405ce1
mov cx, word [eax]
cmp word [esp + 0xe0], cx
jl 0x405ce1
mov cx, word [eax + 6]
cmp word [esp + 0xde], cx
jg 0x405ce1
mov ax, word [eax + 2]
cmp word [esp + 0xe2], ax
jl 0x405ce1
lea edx, [esi + 0x10]
mov dword [esp + 0x18], edx
mov ecx, dword [edx]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx]
cmp eax, ebx
je 0x405b2f
mov eax, dword [eax]
jmp 0x405b31
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x405b3d
mov ecx, dword [eax]
jmp 0x405b3f
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
je 0x405b5b
mov dword [esp + 0x2c], eax
jmp 0x405b60
mov byte [esp + 0x29], 1
mov edi, dword [esp + 0x6c]
mov byte [esp + 0x30], 0
cmp dword [edx], ebx
je 0x405ce1
cmp eax, dword [esp + 0x2c]
jne 0x405b83
mov cl, byte [esp + 0x30]
test cl, cl
jne 0x405ce1
push edi
lea edx, [esp + 0xbc]
push eax
push edx
mov esi, eax
call fcn.0042de20
mov cx, word [eax + 4]
add esp, 0xc
cmp word [esp + 0xdc], cx
jg 0x405ccb
mov cx, word [eax]
cmp word [esp + 0xe0], cx
jl 0x405ccb
mov cx, word [eax + 6]
cmp word [esp + 0xde], cx
jg 0x405ccb
mov ax, word [eax + 2]
cmp word [esp + 0xe2], ax
jl 0x405ccb
push edi
push esi
call fcn.0042ded0
mov dword [esp + 0x78], eax
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov eax, dword [eax]
add esp, 8
cmp eax, ebx
je 0x405bfc
mov eax, dword [eax]
jmp 0x405bfe
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x78], eax
je 0x405c0a
mov eax, dword [eax]
jmp 0x405c0c
xor eax, eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], ebx
mov byte [esp + 0x88], 0
mov byte [esp + 0x80], 0
mov byte [esp + 0x81], 0
call fcn.00405d70
lea ecx, [esp + 0x70]
call fcn.00405d90
test al, al
jne 0x405ccb
mov edx, dword [esp + 0x78]
push edi
lea eax, [esp + 0xac]
push edx
push eax
call fcn.0042def0
add esp, 0xc
lea ecx, [esp + 0xdc]
mov byte [esp + 0xd0], 1
push ecx
mov ecx, eax
call fcn.00405dc0
lea ecx, [esp + 0xa8]
mov bl, al
mov byte [esp + 0xd0], 0
call fcn.004331c0
test bl, bl
je 0x405cb3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405ca0
cmp eax, ebp
jne 0x405d2c
mov eax, dword [esp + 0xe8]
mov dx, word [esp + 0x10]
mov dword [esp + 0x14], ebp
mov word [eax], dx
lea ecx, [esp + 0x70]
call fcn.004403e0
lea ecx, [esp + 0x70]
call fcn.00405d90
test al, al
je 0x405c49
xor ebx, ebx
lea ecx, [esp + 0x18]
call fcn.004403e0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
jmp 0x405b69
lea ecx, [esp + 0x50]
call fcn.004403e0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
jmp 0x405a9b
lea ecx, [esp + 0x34]
call fcn.004403e0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
jmp 0x4059d3
mov esi, dword [esp + 0xe4]
lea ecx, [esp + 0x8c]
call fcn.004403e0
mov eax, dword [esp + 0x94]
jmp 0x40590e
lea ecx, [esp + 0xdc]
call fcn.004331c0
xor eax, eax
jmp 0x405d4c
lea ecx, [esp + 0xdc]
call fcn.004331c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret