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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2b63
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4e4520]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4e4520]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0xd0], 2
lea ebx, [ebx]
push 2
push ebx
push 0x4d3844
mov ecx, esi
call fcn.00407880
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, 0xffffffff
jne 0x40bf87
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x48]
sub ecx, ebx
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00409d90
mov esi, eax
lea eax, [esp + 0x30]
cmp eax, esi
je 0x40bf6b
cmp dword [esp + 0x44], 0x10
jb 0x40bf0e
push dword [esp + 0x30]
call fcn.0047c598
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp dword [esi + 0x14], 0x10
jae 0x40bf40
mov eax, dword [esi + 0x10]
inc eax
je 0x40bf4c
push eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0047c6e0
add esp, 0xc
jmp 0x40bf4c
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x44], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x40c02d
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
jmp 0x40c02d
mov eax, edi
mov ecx, esi
sub eax, ebx
push eax
push ebx
lea eax, [esp + 0x50]
push eax
call fcn.00409d90
mov esi, eax
lea eax, [esp + 0x30]
cmp eax, esi
je 0x40c013
cmp dword [esp + 0x44], 0x10
jb 0x40bfb6
push dword [esp + 0x30]
call fcn.0047c598
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp dword [esi + 0x14], 0x10
jae 0x40bfe8
mov eax, dword [esi + 0x10]
inc eax
je 0x40bff4
push eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0047c6e0
add esp, 0xc
jmp 0x40bff4
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x44], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x40c026
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
lea eax, [edi + 2]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], 0
lea ecx, [esp + 0x30]
jne 0x40c1d9
push 8
push 0
lea eax, [esp + 0x50]
push eax
call fcn.00409d90
mov edi, dword [esp + 0x18]
mov esi, eax
add edi, 8
cmp edi, esi
je 0x40c0b8
cmp dword [edi + 0x14], 0x10
jb 0x40c067
push dword [edi]
call fcn.0047c598
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
jae 0x40c091
mov eax, dword [esi + 0x10]
inc eax
je 0x40c09b
push eax
push esi
push edi
call fcn.0047c6e0
add esp, 0xc
jmp 0x40c09b
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x40c0cb
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
push 1
push 0
push 0x4d3840
lea ecx, [esp + 0x3c]
call fcn.00407880
mov esi, eax
lea ecx, [esp + 0x30]
push 1
lea edi, [esi + 1]
push edi
push 0x4d3840
call fcn.00407880
mov ebx, eax
lea eax, [esp + 0x48]
mov ecx, ebx
sub ecx, esi
dec ecx
push ecx
push edi
push eax
lea ecx, [esp + 0x3c]
call fcn.00409d90
cmp dword [eax + 0x14], 0x10
jb 0x40c112
mov eax, dword [eax]
push eax
call fcn.0047f1ef
mov edi, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [edi + 4], eax
jb 0x40c135
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x30]
sub eax, ebx
dec eax
push eax
lea eax, [ebx + 1]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00409d90
mov esi, eax
add edi, 0x20
cmp edi, esi
je 0x40c1b9
cmp dword [edi + 0x14], 0x10
jb 0x40c168
push dword [edi]
call fcn.0047c598
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
jae 0x40c192
mov eax, dword [esi + 0x10]
inc eax
je 0x40c19c
push eax
push esi
push edi
call fcn.0047c6e0
add esp, 0xc
jmp 0x40c19c
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x40c1cc
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
mov dword [esp + 0x14], 1
jmp 0x40c433
push 2
push 0
push 0x4d385c
call fcn.00407880
mov edi, eax
lea ecx, [esp + 0x30]
push edi
push 0
lea eax, [esp + 0x50]
push eax
call fcn.00409d90
mov esi, eax
lea eax, [esp + 0x60]
cmp eax, esi
je 0x40c274
cmp dword [esp + 0x74], 0x10
jb 0x40c217
push dword [esp + 0x60]
call fcn.0047c598
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
cmp dword [esi + 0x14], 0x10
jae 0x40c249
mov eax, dword [esi + 0x10]
inc eax
je 0x40c255
push eax
lea eax, [esp + 0x64]
push esi
push eax
call fcn.0047c6e0
add esp, 0xc
jmp 0x40c255
mov eax, dword [esi]
mov dword [esp + 0x60], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x74], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x40c287
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x30]
sub eax, edi
sub eax, 2
push eax
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00409d90
mov esi, eax
lea eax, [esp + 0x78]
cmp eax, esi
je 0x40c32c
cmp dword [esp + 0x8c], 0x10
jb 0x40c2c3
push dword [esp + 0x78]
call fcn.0047c598
add esp, 4
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp dword [esi + 0x14], 0x10
jae 0x40c2fb
mov eax, dword [esi + 0x10]
inc eax
je 0x40c307
push eax
lea eax, [esp + 0x7c]
push esi
push eax
call fcn.0047c6e0
add esp, 0xc
jmp 0x40c307
mov eax, dword [esi]
mov dword [esp + 0x78], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x8c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x40c33f
push dword [esp + 0x48]
call fcn.0047c598
add esp, 4
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], 0
mov byte [esp + 0xa8], 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x68]
mov byte [esp + 0xd8], 3
push eax
lea ecx, [esp + 0x9c]
call fcn.00403490
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xb4]
call fcn.00403490
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x90]
push eax
lea ecx, [esi + 0x50]
call fcn.0040cd00
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0x50]
call fcn.0040cd30
inc dword [esp + 0x14]
mov byte [esp + 0xd0], 2
cmp dword [esp + 0xbc], 0x10
jb 0x40c3fc
push dword [esp + 0xa8]
call fcn.0047c598
add esp, 4
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], 0
mov byte [esp + 0xa8], 0
jb 0x40c433
push dword [esp + 0x90]
call fcn.0047c598
add esp, 4
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
jne 0x40bec0
cmp dword [esp + 0x8c], 0x10
jb 0x40c45c
push dword [esp + 0x78]
call fcn.0047c598
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x40c48a
push dword [esp + 0x60]
call fcn.0047c598
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x40c4b2
push dword [esp + 0x30]
call fcn.0047c598
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0047cd24
mov esp, ebp
pop ebp
ret 4