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

Disassembly:
push 0xffffffffffffffff
push 0x5159e0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x14], ebx
je 0x40bd11
cmp dword [ebp + 0x30], ebx
je 0x40bd11
lea ecx, [esp + 0x50]
call fcn.004012d0
mov dword [esp + 0x78], ebx
mov eax, dword [ebp + 0x30]
lea esi, [eax - 1]
cmp esi, ebx
jl 0x40bca2
lea edi, [ebp + 0x1c]
cmp dword [edi + 0x14], esi
ja 0x40bb40
call fcn.0048096e
mov ecx, edi
call fcn.00401a20
movzx eax, word [eax + esi*2]
lea ecx, [esp + 0x50]
push ecx
cmp ax, 0x39
jne 0x40bc13
lea edx, [esp + 0x1c]
push 0x30
push edx
call fcn.0040df50
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 3
call fcn.00401790
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00401340
cmp esi, ebx
jne 0x40bc05
push ecx
mov ecx, esp
call fcn.00402a50
lea ecx, [esp + 0x1c]
call fcn.00401a50
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.004019a0
push 1
push 0x53b428
lea ecx, [esp + 0x20]
call fcn.0040b080
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x84], 4
call fcn.0040ded0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 5
call fcn.00401790
lea ecx, [esp + 0x34]
call fcn.00401340
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00401340
sub esi, 1
jns 0x40bb36
jmp 0x40bca2
inc eax
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0040df50
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 1
call fcn.00401790
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], bl
call fcn.00401340
sub esi, 1
js 0x40bca2
lea esp, [esp]
cmp dword [edi + 0x14], esi
ja 0x40bc5a
call fcn.0048096e
mov ecx, edi
call fcn.00401a20
movzx edx, word [eax + esi*2]
lea eax, [eax + esi*2]
lea ecx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0040df50
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.00401790
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], bl
call fcn.00401340
sub esi, 1
jns 0x40bc50
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x58]
lea esi, [ebp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401790
push esi
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.0040ded0
add ebp, 0x38
push ebp
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x90], 6
call fcn.0040ded0
add esp, 0x18
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x84], 7
call fcn.00401790
lea ecx, [esp + 0x34]
call fcn.00401340
lea ecx, [esp + 0x18]
call fcn.00401340
lea ecx, [esp + 0x50]
call fcn.00401340
mov eax, 1
jmp 0x40bd13
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b8dd5
add esp, 0x68
ret 8