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

Disassembly:
push 0xffffffffffffffff
push 0x457470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov al, byte [esp + 0x6c]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00404380
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x74], ebx
cmp eax, ebx
je 0x40a930
cmp byte [eax], bl
jne 0x40a951
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409ad0
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x7c], 0x45adc8
je 0x40a951
mov dword [esp + 0x7c], eax
call fcn.00411800
cmp eax, 1
je 0x40abdc
cmp eax, 2
je 0x40abdc
cmp eax, 3
je 0x40abdc
mov dl, byte [esp + 0x7c]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x3c], dl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
push 0x80000000
push ebx
push ebx
mov byte [esp + 0x80], 1
call dword [0x45a038]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
jne 0x40aa16
push ebx
call dword [0x45a02c]
mov eax, dword [esp + 0x68]
mov byte [esp + 0x74], bl
cmp eax, ebx
je 0x40aa78
mov eax, dword [esp + 0x48]
push ebx
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x4c], eax
call fcn.00404f30
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x68], eax
je 0x40aa05
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x40aa0e
lea ecx, [esp + 0x3c]
call fcn.00404d40
cmp dword [esp + 0x68], ebx
jne 0x40a9db
jmp 0x40aa78
push 3
lea ecx, [esp + 0x40]
push 0x30
push ecx
push esi
call fcn.0040ac10
add esp, 0x10
test eax, eax
je 0x40aaa1
push esi
call dword [0x45a02c]
mov eax, dword [esp + 0x68]
mov byte [esp + 0x74], bl
cmp eax, ebx
je 0x40aa78
mov eax, dword [esp + 0x48]
push ebx
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x4c], eax
call fcn.00404f30
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x68], eax
je 0x40aa69
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
cmp edx, eax
jne 0x40aa72
lea ecx, [esp + 0x3c]
call fcn.00404d40
cmp dword [esp + 0x68], ebx
jne 0x40aa3f
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.00404380
or eax, 0xffffffff
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edi, 1
jmp 0x40aaaa
xor ebx, ebx
mov al, byte [esp + 0x3c]
sub esp, 0x30
mov esi, esp
mov dword [esp + 0x44], esp
lea ecx, [esi + 4]
mov byte [esi], al
call fcn.0040b7e0
lea ecx, [esi + 0x14]
call fcn.0040b7e0
lea ecx, [esp + 0x80]
mov dword [esi + 0x24], ebx
push ecx
lea ecx, [esp + 0x60]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040b7f0
mov ebx, dword [esp + 0x5c]
push esi
sub esp, 0x10
mov eax, dword [esp + 0x84]
mov esi, esp
mov ecx, dword [esp + 0x88]
sub esp, 0x10
mov edx, dword [esp + 0x9c]
mov dword [esi], ebx
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0xa0]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x88]
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esi + 0xc], ebx
mov esi, esp
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
lea edx, [esp + 0x6c]
push edx
mov dword [esi + 0xc], ebp
call fcn.0040b880
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0x68]
add esp, 0x28
push eax
push edi
push esi
call fcn.0040a0b0
add esp, 0x3c
inc edi
cmp edi, 4
jl 0x40aaa8
push esi
call dword [0x45a02c]
mov eax, dword [esp + 0x68]
mov byte [esp + 0x74], 0
test eax, eax
je 0x40abb6
mov eax, dword [esp + 0x48]
push 0
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x4c], eax
call fcn.00404f30
mov eax, dword [esp + 0x68]
dec eax
mov dword [esp + 0x68], eax
je 0x40aba5
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jne 0x40abae
lea ecx, [esp + 0x3c]
call fcn.00404d40
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40ab7a
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40abef
mov al, byte [ecx - 1]
test al, al
je 0x40abd0
cmp al, 0xff
je 0x40abd0
dec al
mov byte [ecx - 1], al
jmp 0x40abef
dec ecx
push ecx
call fcn.004428ea
add esp, 4
jmp 0x40abef
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.00404380
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret