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

Disassembly:
push 0xffffffffffffffff
push 0x444160
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov eax, ebx
sub eax, ecx
sar eax, 5
cdq
sub eax, edx
mov esi, eax
sar esi, 1
shl esi, 5
add esi, ecx
push edi
lea eax, [ebx - 0x20]
push esi
call fcn.0040cd30
add esp, 8
lea eax, [esi + 0x20]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov ebp, 7
cmp dword [esp + 0x44], esi
jae 0x40c8b9
jmp 0x40c7e0
mov ecx, dword [esi]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [esi + 4]
push ebx
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x58], ebx
mov ecx, dword [esi - 0x20]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [esi - 0x1c]
push ebx
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40c8b9
mov ecx, dword [esi - 0x20]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esi - 0x1c]
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x58], 1
mov ecx, dword [esi]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esi + 4]
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40c8b9
add esi, 0xffffffe0
cmp dword [esp + 0x44], esi
jb 0x40c7e0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x48]
jae 0x40c9c6
add eax, 4
mov dword [esp + 0x1c], eax
mov edi, edi
mov ecx, dword [esi]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esi + 4]
mov word [ecx + 4], dx
call fcn.004038b0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], 2
mov edx, dword [ecx]
sub esp, 0x20
mov eax, esp
mov dword [eax], edx
lea ecx, [eax + 4]
mov dword [esp + 0x60], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
mov eax, dword [esp + 0x60]
push ebx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40c9c6
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
sub esp, 0x20
mov eax, esp
mov dword [eax], edx
lea ecx, [eax + 4]
mov dword [esp + 0x44], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
mov eax, dword [esp + 0x40]
push ebx
call fcn.004038b0
mov dword [esp + 0x58], 3
mov ecx, dword [esi]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esi + 4]
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40c9c6
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x20
add eax, 0x20
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x48]
jb 0x40c8d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x48]
jae 0x40caf7
add eax, 4
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
sub esp, 0x20
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], esp
add ecx, 4
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x58], 4
mov eax, dword [esi]
sub esp, 0x20
mov ecx, esp
mov dword [ecx], eax
mov dword [esp + 0x68], esp
add ecx, 4
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esi + 4]
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40cadd
mov eax, dword [esi]
sub esp, 0x20
mov ecx, esp
mov dword [ecx], eax
mov dword [esp + 0x48], esp
add ecx, 4
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esi + 4]
mov word [ecx + 4], dx
call fcn.004038b0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], 5
mov edx, dword [eax]
sub esp, 0x20
mov ecx, esp
mov dword [ecx], edx
add ecx, 4
mov dword [esp + 0x64], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
mov eax, dword [esp + 0x64]
push ebx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40caf7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x14], eax
call fcn.0040d2d0
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 0x20
add eax, 0x20
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x48]
jb 0x40c9e7
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x44], ecx
jae 0x40cc18
lea edx, [esi + 4]
mov dword [esp + 0x20], edx
mov eax, dword [esi]
sub esp, 0x20
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], esp
add ecx, 4
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], dx
call fcn.004038b0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], 6
sub esp, 0x20
lea edx, [eax - 0x20]
mov dword [esp + 0x64], esp
mov ecx, esp
mov dword [esp + 0x64], edx
mov edx, dword [edx]
mov dword [ecx], edx
add ecx, 4
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
add eax, 0xffffffe4
push ebx
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40cc06
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
sub esp, 0x20
mov eax, esp
mov dword [eax], edx
lea ecx, [eax + 4]
xor eax, eax
mov dword [esp + 0x48], esp
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
add eax, 0xffffffe4
call fcn.004038b0
mov dword [esp + 0x58], ebp
mov ecx, dword [esi]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6c], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
mov word [ecx + 4], dx
call fcn.004038b0
mov dword [esp + 0x78], 0xffffffff
call edi
add esp, 0x40
cmp al, bl
jne 0x40cc18
mov edi, dword [esp + 0x24]
sub dword [esp + 0x20], 0x20
sub esi, 0x20
mov ecx, esi
call fcn.0040d2d0
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], eax
jb 0x40cb0c
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x44]
jne 0x40cc64
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x48]
je 0x40ccb9
mov edi, dword [esp + 0x14]
cmp edi, eax
je 0x40cc3f
mov ecx, esi
call fcn.0040d2d0
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x20
mov edi, eax
add eax, 0x20
mov ecx, esi
add esi, 0x20
mov dword [esp + 0x18], eax
call fcn.0040d2d0
mov edi, dword [esp + 0x4c]
jmp 0x40c9d2
mov eax, dword [esp + 0x48]
sub edi, 0x20
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x18], eax
jne 0x40cca2
sub esi, 0x20
cmp edi, esi
je 0x40cc87
mov ecx, dword [esp + 0x1c]
mov edi, esi
call fcn.0040d2d0
mov edi, dword [esp + 0x14]
sub edi, 0x20
mov ecx, esi
mov dword [esp + 0x14], edi
call fcn.0040d2d0
mov edi, dword [esp + 0x4c]
jmp 0x40c9d2
mov ecx, dword [esp + 0x18]
call fcn.0040d2d0
add dword [esp + 0x18], 0x20
mov edi, dword [esp + 0x4c]
jmp 0x40c9d2
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret