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

Disassembly:
push 0xffffffffffffffff
push 0x4276e2
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x8a8], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x8b0], 1
call fcn.00406b80
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x406030
mov ecx, dword [esp + 0x3c]
sub ecx, eax
mov eax, 0x7e8472a9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x406093
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x406043
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 6
jne 0x406093
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], ebp
mov word [ebx + 4], bp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x406075
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.004081e0
mov edx, dword [esp + 0x28]
push edx
call fcn.00413bbf
add esp, 0xc
lea ebx, [esp + 0x34]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00407110
mov eax, dword [esp + 0x30]
jmp 0x4062ff
mov eax, 7
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
lea esi, [esp + 0x48c]
call fcn.004118b0
mov byte [esp + 0x8a8], 4
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov ecx, dword [esp + 0x3c]
jne 0x4060d8
mov dword [esp + 0x18], ebp
jmp 0x4060f1
mov edx, ecx
sub edx, esi
mov eax, 0x7e8472a9
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x18], ebp
jbe 0x4061bd
mov dword [esp + 0x2c], ebp
jmp 0x40610b
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, ebp
je 0x406126
sub ecx, esi
mov eax, 0x7e8472a9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40612f
call fcn.00414249
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x7c]
lea ecx, [eax + esi]
push edx
call fcn.00406330
mov eax, 5
mov byte [esp + 0x8a8], al
cmp dword [esp + 0x34c], eax
je 0x40616a
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x110]
lea ecx, [esp + 0x68]
call fcn.004030d0
jmp 0x406197
cmp dword [esp + 0x52c], ebp
je 0x406183
mov eax, dword [esp + 0x354]
cmp eax, dword [esp + 0x764]
jbe 0x406197
lea eax, [esp + 0x7c]
lea ebx, [esp + 0x48c]
call fcn.00406460
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x7c]
mov byte [esp + 0x8a8], 4
call fcn.00411a40
add dword [esp + 0x2c], 0x40c
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x406103
cmp dword [esp + 0x52c], ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push ebp
lea eax, [esp + 0x68]
je 0x4061d8
lea eax, [esp + 0x520]
call fcn.004030d0
cmp dword [esp + 0x58], ebp
jne 0x406233
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x406233
mov eax, dword [esp + 0x24]
mov edx, eax
sub edx, ecx
sar edx, 6
je 0x406233
xor esi, esi
xor edi, edi
lea esp, [esp]
cmp ecx, ebp
je 0x406233
sub eax, ecx
sar eax, 6
cmp esi, eax
jae 0x406233
push 0xffffffffffffffff
lea eax, [edi + ecx + 0x1c]
push ebp
lea ecx, [esp + 0x4c]
call fcn.004030d0
cmp dword [esp + 0x58], ebp
jne 0x406233
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esi, 1
add edi, 0x40
jmp 0x406200
push 0xffffffffffffffff
mov edi, 7
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], ebp
push ebp
lea eax, [esp + 0x4c]
mov ecx, ebx
mov word [ebx + 4], bp
call fcn.004030d0
lea esi, [esp + 0x48c]
call fcn.00411a40
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x406274
mov eax, dword [esp + 0x64]
push eax
call fcn.00413bbf
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
jb 0x406294
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00413bbf
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x4062c5
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.004081e0
mov edx, dword [esp + 0x28]
push edx
call fcn.00413bbf
add esp, 0xc
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x4062fd
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x4062f4
call fcn.00411a40
add esi, 0x40c
cmp esi, edi
jne 0x4062e1
mov esi, dword [esp + 0x38]
push esi
call fcn.00413bbf
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.004138c3
add esp, 0x898
ret