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

Disassembly:
push 0xffffffffffffffff
push 0x49ff4e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d8]
fldz
mov edi, dword [esp + 0x1dc]
fst qword [esp + 0xac]
mov ebp, dword [esp + 0x1d4]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov eax, 7
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], bx
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], bx
mov byte [esp + 0xf4], bl
mov byte [esp + 0xf5], bl
mov byte [esp + 0xf6], bl
mov byte [esp + 0xf7], bl
mov dword [esp + 0x1cc], ebx
fstp qword [esp + 0xb4]
lea esi, [ebp + 0x100]
mov ecx, esi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa4], 0x64
call fcn.00419360
mov dword [esp + 0x14], eax
mov eax, edx
and edx, 0x7fffffff
mov dword [esp + 0x18], edx
fild qword [esp + 0x14]
and eax, 0x80000000
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
fild qword [esp + 0x14]
mov ecx, 0x72
lea edx, [esp + 0x80]
fchs
faddp st(1)
fstp qword [esp + 0xac]
call fcn.00432a50
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1d4], 1
call fcn.00401b70
cmp dword [esp + 0x98], 8
jb 0x40c175
mov eax, dword [esp + 0x84]
push eax
call fcn.0045a870
add esp, 4
lea eax, [esp + 0x12c]
call fcn.004163e0
push esi
lea edx, [esp + 0xa0]
lea ecx, [ebp + 0x40]
push edx
mov byte [esp + 0x1d4], 2
mov eax, dword [ebp + 0x64]
push ecx
lea esi, [esp + 0x138]
call fcn.00416530
lea eax, [esp + 0x9c]
push eax
call fcn.0041a6c0
add esp, 4
cmp byte [esp + 0xf4], bl
je 0x40c284
push ebx
push 0x4a9c14
lea esi, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00401c20
mov edx, dword [esp + 0x24]
mov ecx, esi
push ecx
mov byte [esp + 0x1d0], 3
push edi
mov ecx, 0xa
mov dword [ebp + 0x70], 0xc
call fcn.0040d380
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x40c21b
mov edx, dword [esp + 0x4c]
push edx
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x1cc], bl
call fcn.00416460
cmp dword [esp + 0xf0], esi
jb 0x40c247
mov eax, dword [esp + 0xdc]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xd4], esi
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], bx
jb 0x40c27a
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.0045a870
add esp, 4
mov eax, 0xc
jmp 0x40c67a
mov esi, dword [ebp + 0x174]
cmp esi, dword [ebp + 0x178]
jbe 0x40c297
call fcn.00478a25
mov dword [esp + 0x20], esi
jmp 0x40c2a2
xor ebx, ebx
mov esi, dword [ebp + 0x178]
cmp dword [ebp + 0x174], esi
lea edi, [ebp + 0x170]
jbe 0x40c2bb
call fcn.00478a25
cmp edi, edi
je 0x40c2c4
call fcn.00478a25
cmp dword [esp + 0x20], esi
je 0x40c397
lea eax, [ebp + 0x40]
push eax
mov ebx, 0x4a9c18
lea esi, [esp + 0x4c]
call fcn.00403760
add esp, 4
mov esi, eax
mov byte [esp + 0x1cc], 4
mov ebx, dword [esp + 0x20]
cmp ebx, dword [edi + 8]
jb 0x40c2fb
call fcn.00478a25
add ebx, 0x1c
push ebx
push esi
lea edi, [esp + 0x88]
call fcn.00403f90
add esp, 8
mov esi, 8
mov byte [esp + 0x1cc], 6
cmp dword [esp + 0x60], esi
jb 0x40c32f
mov edx, dword [esp + 0x4c]
push edx
call fcn.0045a870
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x80]
push 1
push eax
mov dword [esp + 0x68], 7
call fcn.00433390
mov ecx, dword [esp + 0x28]
add esp, 8
cmp ecx, dword [ebp + 0x178]
jb 0x40c365
call fcn.00478a25
add dword [esp + 0x20], 0x104
mov byte [esp + 0x1cc], 2
cmp dword [esp + 0x98], esi
jb 0x40c2a0
mov edx, dword [esp + 0x84]
push edx
call fcn.0045a870
add esp, 4
jmp 0x40c2a0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea edi, [ebp + 0x104]
mov byte [esp + 0x1cc], 7
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x40c3be
call fcn.00478a25
mov dword [esp + 0x18], esi
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov dword [esp + 0x1c], eax
jbe 0x40c3d3
call fcn.00478a25
cmp edi, edi
je 0x40c3dc
call fcn.00478a25
cmp esi, dword [esp + 0x1c]
je 0x40c415
cmp esi, dword [edi + 8]
jb 0x40c3ec
call fcn.00478a25
mov eax, dword [esi + 4]
add eax, 0x1c
push eax
lea esi, [esp + 0x34]
call fcn.00401650
mov ecx, dword [esp + 0x18]
cmp ecx, dword [edi + 8]
jb 0x40c40a
call fcn.00478a25
add dword [esp + 0x18], 8
mov esi, dword [esp + 0x18]
jmp 0x40c3c2
mov esi, 7
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov word [esp + 0x114], bx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
mov byte [esp + 0x1cc], 9
mov eax, dword [ebp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [ebp + 0x40]
push eax
push edx
lea eax, [ebp + 0x80]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x120]
push edx
mov dword [esp + 0x68], 3
call fcn.00411e10
add esp, 0x24
cmp dword [esp + 0x78], ebx
jne 0x40c578
mov ecx, dword [esp + 0x104]
cmp ecx, ebx
je 0x40c4c4
mov edx, dword [esp + 0x108]
sub edx, ecx
sar edx, 2
jne 0x40c578
mov edx, 0x4a9c14
lea eax, [esp + 0x80]
call fcn.004015e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x80]
push eax
push ecx
mov edi, 8
mov byte [esp + 0x1d4], 0xa
mov ecx, edi
mov dword [ebp + 0x70], 0xa
call fcn.0040d380
cmp dword [esp + 0x98], edi
jb 0x40c51a
mov edx, dword [esp + 0x84]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x40c52d
mov eax, dword [esp + 0x68]
push eax
call fcn.0045a870
add esp, 4
lea edi, [esp + 0x100]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.00433d80
lea esi, [esp + 0x30]
call fcn.004019a0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x1cc], bl
call fcn.00416460
lea esi, [esp + 0x9c]
call fcn.00413a60
mov eax, 0xa
jmp 0x40c67a
cmp eax, ebx
je 0x40c5fe
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x2c]
mov ecx, 9
mov dword [ebp + 0x70], 0xb
call fcn.0040d380
cmp dword [esp + 0x7c], 8
jb 0x40c5b3
mov eax, dword [esp + 0x68]
push eax
call fcn.0045a870
add esp, 4
lea edi, [esp + 0x100]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.00433d80
lea esi, [esp + 0x30]
call fcn.004019a0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x1cc], bl
call fcn.00416460
lea esi, [esp + 0x9c]
call fcn.00413a60
mov eax, 0xb
jmp 0x40c67a
mov eax, dword [ebp + 0x5c]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x118]
call fcn.00401b70
add ebp, 0x24
push ebp
lea eax, [esp + 0x104]
call fcn.00433e80
cmp dword [esp + 0x7c], 8
jb 0x40c634
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0045a870
add esp, 4
lea edi, [esp + 0x100]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.00433d80
lea esi, [esp + 0x30]
call fcn.004019a0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x1cc], bl
call fcn.00416460
lea esi, [esp + 0x9c]
call fcn.00413a60
mov eax, 1
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.00478599
add esp, 0x1bc
ret 0xc