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

Disassembly:
push 0xffffffffffffffff
push 0x4f15a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
lea edi, [esp + 0x28]
mov dword [esp + 0x24], eax
call fcn.00402950
push eax
mov dword [esp + 0x64], 0
call fcn.0040e230
mov ebx, eax
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
mov dword [esp + 0x20], ebx
je 0x40c812
push 0
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004b80e9
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40c7f0
cmp eax, 0xffffffff
jae 0x40c7f0
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.004b810a
test esi, esi
je 0x40c812
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x38]
mov ecx, ebx
call fcn.0040d010
mov ecx, 1
mov dword [esp + 0x60], ecx
mov al, byte [ebp]
cmp al, 0x2b
je 0x40c854
cmp al, 0x2d
je 0x40c854
cmp al, 0x30
jne 0x40c84a
mov al, byte [ebp + 1]
cmp al, 0x78
je 0x40c840
cmp al, 0x58
jne 0x40c84a
mov dword [esp + 0x18], 2
jmp 0x40c858
mov dword [esp + 0x18], 0
jmp 0x40c858
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
cmp ecx, 0x10
mov edx, dword [esp + 0x3c]
mov eax, edx
jae 0x40c86b
lea eax, [esp + 0x3c]
cmp byte [eax], 0x7f
je 0x40c8f6
cmp ecx, 0x10
mov eax, edx
jae 0x40c87f
lea eax, [esp + 0x3c]
cmp byte [eax], 0
jle 0x40c8f6
cmp ecx, 0x10
jb 0x40c88f
mov dword [esp + 0x1c], edx
jmp 0x40c897
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
cmp al, 0x7f
mov edi, dword [esp + 0x84]
mov esi, edi
je 0x40c8fd
test al, al
jle 0x40c8fd
mov edx, esi
sub edx, dword [esp + 0x18]
movsx eax, al
cmp eax, edx
jae 0x40c8fd
sub esi, eax
mov eax, edi
sub eax, esi
add eax, 1
push eax
lea ebx, [esi + ebp]
push ebx
push eax
lea ecx, [esi + ebp + 1]
push ecx
call fcn.004b884c
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov byte [ebx], 0
add edi, 1
cmp byte [eax + 1], 0
jle 0x40c8ee
add eax, 1
mov dword [esp + 0x1c], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x40c8aa
jmp 0x40c8fd
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x18]
test esi, esi
jle 0x40c910
cmp esi, edi
jbe 0x40c910
sub esi, edi
jmp 0x40c912
xor esi, esi
mov eax, dword [eax + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x40c9dd
cmp eax, 0x100
je 0x40c96d
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov bl, byte [esp + 0x7c]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x38]
push eax
mov eax, esi
call fcn.0040cb10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
add esp, 0x10
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
xor esi, esi
jmp 0x40c9e1
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x18]
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 4], edx
lea edx, [esp + 0x3c]
mov dword [eax + 8], ecx
push edx
mov eax, ebx
call fcn.0040ca90
mov edx, dword [eax]
add esp, 8
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x38]
add ebp, ebx
sub edi, ebx
mov bl, byte [esp + 0x88]
push ecx
mov eax, esi
call fcn.0040cb10
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
add esp, 0x10
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
xor esi, esi
jmp 0x40c9e1
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov edx, dword [esp + 0x6c]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x74]
push edi
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
lea edx, [esp + 0x40]
mov dword [eax + 8], ebx
push edx
mov eax, ebp
call fcn.0040cf40
mov edi, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x3c]
mov bl, byte [esp + 0x94]
add esp, 0xc
mov dword [ecx + 0x18], 0
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x74]
mov dword [ecx + 8], eax
push edi
mov eax, esi
call fcn.0040cb10
add esp, 0x10
cmp dword [esp + 0x50], 0x10
jb 0x40ca61
mov edx, dword [esp + 0x3c]
push edx
call fcn.004b8c4b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b883d
add esp, 0x50
ret