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

Disassembly:
push 0xffffffffffffffff
push 0x4e159e
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x15c]
xor ebx, ebx
mov esi, 7
mov dword [esp + 0x28], eax
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x158], 1
call fcn.0043594f
add esp, 4
test al, al
jne 0x40418c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404165
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push edx
call fcn.00408720
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.004b6eae
add esp, 4
cmp dword [esp + 0x98], 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x4046d6
mov ecx, dword [esp + 0x84]
push ecx
jmp 0x4046ce
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov byte [esp + 0x13c], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
xor edi, edi
mov byte [esp + 0x154], 3
xor ebp, ebp
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4043f8
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4043f8
cmp dword [esi + ebp + 0x18], 8
jb 0x40425c
mov esi, dword [esi + ebp + 4]
jmp 0x404260
lea esi, [esi + ebp + 4]
push esi
call dword [0x4e6128]
cmp eax, 3
jne 0x4043ed
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x404295
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40429e
call fcn.004b7b58
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xd4]
lea ecx, [esi + ebp]
push edx
call fcn.00435a8a
add esp, 4
test al, al
je 0x4043ed
mov ecx, dword [esp + 0x138]
cmp dword [esp + 0x30], ecx
ja 0x4043ed
mov eax, dword [esp + 0x134]
jb 0x4042dd
cmp dword [esp + 0x2c], eax
jae 0x4043ed
mov esi, dword [esp + 0x1c]
cmp esi, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
je 0x40430a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x404313
call fcn.004b7b58
mov esi, dword [esp + 0x1c]
cmp dword [esi + ebp + 0x18], 8
jb 0x404320
mov esi, dword [esi + ebp + 4]
jmp 0x404324
lea esi, [esi + ebp + 4]
movzx eax, word [esi]
push eax
lea esi, [esp + 0xbc]
call fcn.00407520
push 4
push 0x4ec8b0
lea esi, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00407ef0
lea ecx, [esp + 0xb8]
push 0x4ec8bc
push ecx
lea esi, [esp + 0x6c]
mov byte [esp + 0x15c], 4
call fcn.00408420
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x164], 5
call fcn.0043e96d
mov esi, 8
add esp, 0x10
cmp dword [esp + 0x7c], esi
jb 0x4043a8
mov eax, dword [esp + 0x68]
push eax
call fcn.004b6eae
add esp, 4
mov byte [esp + 0x154], 3
cmp dword [esp + 0x60], esi
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
jb 0x4043d4
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004b6eae
add esp, 4
cmp dword [esp + 0xb4], esi
jb 0x4043ed
mov edx, dword [esp + 0xa0]
push edx
call fcn.004b6eae
add esp, 4
add edi, 1
add ebp, 0x1c
jmp 0x404222
cmp dword [esp + 0x94], ebx
jne 0x40450f
push 4
mov edi, 7
push 0x4ec8b0
lea esi, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00407ef0
lea eax, [esp + 0xb8]
push 0x4ec8bc
push eax
lea esi, [esp + 0xa4]
mov byte [esp + 0x15c], 6
call fcn.00408420
lea ecx, [esp + 0x50]
push ecx
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x164], 7
call fcn.0043e96d
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x8c]
mov byte [esp + 0x160], 8
call fcn.00401690
mov ebp, 8
cmp dword [esp + 0x7c], ebp
jb 0x404492
mov edx, dword [esp + 0x68]
push edx
call fcn.004b6eae
add esp, 4
cmp dword [esp + 0xb4], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
jb 0x4044b8
mov eax, dword [esp + 0xa0]
push eax
call fcn.004b6eae
add esp, 4
mov byte [esp + 0x154], 3
cmp dword [esp + 0x60], ebp
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x4044e9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004b6eae
add esp, 4
lea edx, [esp + 0x80]
push edx
call fcn.0043ece2
add esp, 4
test al, al
jne 0x404514
lea eax, [esp + 0x80]
push eax
call fcn.0043f057
add esp, 4
jmp 0x404514
mov ebp, 8
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x134], ebx
je 0x404639
mov edx, dword [ecx + 0x8c]
mov eax, dword [edx + 4]
add ecx, 0x88
cmp byte [eax + 0x15], bl
mov esi, 0x73
jne 0x404553
lea ecx, [ecx]
cmp dword [eax + 0xc], esi
jae 0x40454a
mov eax, dword [eax + 8]
jmp 0x40454e
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0x15], bl
je 0x404540
mov eax, dword [ecx + 4]
cmp edx, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
je 0x40456d
cmp dword [edx + 0xc], esi
ja 0x40456d
lea eax, [esp + 0x40]
jmp 0x404579
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x38]
mov esi, dword [eax]
cmp esi, ebx
mov edi, dword [eax + 4]
mov ebp, dword [ecx + 4]
je 0x404589
cmp esi, ecx
je 0x40458e
call fcn.004b7b58
cmp edi, ebp
je 0x404634
cmp esi, ebx
jne 0x40459f
call fcn.004b7b58
cmp edi, dword [esi + 4]
jne 0x4045a9
call fcn.004b7b58
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x404634
mov ecx, dword [esp + 0x28]
add ecx, 0x298
push ecx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0xa4]
call fcn.0043e96d
add esp, 8
mov byte [esp + 0x154], 9
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x170]
mov ecx, esi
call eax
mov byte [esp + 0x154], 3
cmp dword [esp + 0xb4], 8
jb 0x40460d
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.004b6eae
add esp, 4
mov edx, dword [esi]
mov edx, dword [edx + 0x2d8]
or eax, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push 0x437
mov ecx, esi
call edx
mov ebp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push eax
push ecx
call fcn.00404e90
cmp dword [esp + 0xd0], ebp
jb 0x404665
mov edx, dword [esp + 0xbc]
push edx
call fcn.004b6eae
add esp, 4
lea esi, [esp + 0xd4]
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
call fcn.00404700
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4046b1
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
push ecx
call fcn.00408720
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.004b6eae
add esp, 4
cmp dword [esp + 0x98], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x4046d6
mov eax, dword [esp + 0x84]
push eax
call fcn.004b6eae
add esp, 4
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004b6e9f
add esp, 0x144
ret 4