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

Disassembly:
push 0xffffffffffffffff
push 0x60e0c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0x68]
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
mov ecx, ebx
call edx
cmp eax, 9
jne 0x4101a2
mov edi, dword [ebx + 0x3c]
test edi, edi
je 0x410028
mov eax, dword [edi + 8]
test eax, eax
jne 0x410024
mov esi, dword [edi + 4]
and esi, 0x7f
call fcn.004fe0e0
mov esi, dword [eax + esi*4 - 4]
push edi
mov ecx, esi
call fcn.004fd530
mov edi, eax
jmp 0x41002a
xor edi, edi
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.0042ea80
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], 0
call fcn.0042ed90
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
cmp eax, 4
jne 0x41009e
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0xff
mov ecx, esi
call edx
cmp dword [esi + 0xc], 0
jle 0x410076
push 0
mov ecx, esi
call fcn.0055a810
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
push eax
call fcn.005ee1f0
mov dword [eax], edi
jmp 0x41018c
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
mov ecx, ebx
mov esi, eax
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xce
je 0x4100e0
mov ecx, ebx
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, 0xcd
jne 0x41013b
mov ecx, ebx
call fcn.004a8b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
fmul qword [0x62e318]
mov edx, dword [esi]
xor eax, eax
fdiv qword [0x62e310]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
sub esp, 8
mov eax, esp
mov ecx, esi
mov dword [esp + 0x74], esp
fstp qword [eax]
mov eax, dword [edx + 4]
call eax
mov ecx, ebx
call fcn.004a8b00
mov edx, dword [eax]
mov ebx, dword [esi]
mov ecx, eax
mov eax, dword [edx + 0x44]
add ebx, 0xc
call eax
mov edx, dword [ebx]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x6c]
push 0
push 0
push 1
push 0
push eax
push esi
lea ecx, [ebp + 0x1f0]
call fcn.0054d1c0
test eax, eax
jne 0x41017e
test esi, esi
je 0x410166
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], 0xffffffff
call fcn.004ed1b0
xor eax, eax
jmp 0x4105f2
test esi, esi
je 0x41018c
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], 0xffffffff
call fcn.004ed1b0
jmp 0x4105ed
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
cmp eax, 0xe
je 0x410274
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
cmp eax, 0xf
je 0x410274
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
cmp eax, 0xb
je 0x4101fd
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
cmp eax, 0xc
je 0x4101fd
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebx]
mov eax, dword [edx + 0x6c]
push ecx
mov ecx, ebx
call eax
push eax
mov ecx, ebp
call fcn.0040b180
jmp 0x4105ed
mov edx, dword [ebx]
mov edx, dword [edx + 0xdc]
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4105ed
mov eax, dword [ecx + 4]
test ax, ax
je 0x4105ed
xor edx, edx
xor esi, esi
cmp dx, ax
jae 0x41025f
mov edi, dword [esp + 0x6c]
mov edx, dword [ecx + 8]
movzx eax, si
mov eax, dword [edx + eax*4]
test eax, eax
je 0x410256
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
push edi
call eax
push eax
mov ecx, ebp
call fcn.0040b180
mov ecx, dword [esp + 0x68]
movzx edx, word [ecx + 4]
inc esi
cmp esi, edx
jl 0x410233
mov esi, ecx
call fcn.004b8ee0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4105ed
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.00405fd0
mov edi, 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], edi
call fcn.00405fd0
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
mov ecx, ebx
mov byte [esp + 0x60], 2
call edx
cmp eax, 0xf
jne 0x4102cc
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
mov dword [esp + 0x74], esi
call fcn.004bb080
cmp dword [esp + 0x34], esi
jle 0x4102cc
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0046d010
mov ecx, eax
call fcn.004b5d80
mov ecx, dword [ebp + 0x34]
push esi
push eax
call fcn.0046ce00
mov ecx, eax
call fcn.004b3f70
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x7c]
mov ecx, ebx
call edx
fstp st(0)
movzx eax, word [ebx + 0x5e]
movzx esi, word [ebx + 0x5c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
call fcn.00405fd0
cmp si, word [esp + 0x24]
movzx edi, si
mov byte [esp + 0x60], 3
mov dword [esp + 0x14], edi
jg 0x4105c0
jmp 0x410330
movsx eax, di
cmp dword [esp + 0x70], eax
jne 0x4105b0
mov eax, dword [ebp + 0x48]
mov edx, dword [eax + 0x30]
movzx ecx, di
cmp edx, ecx
jle 0x410381
mov edx, dword [eax + 0x34]
mov esi, dword [edx + ecx*4]
lea eax, [edx + ecx*4]
test esi, esi
je 0x410381
mov eax, dword [esi + 8]
test eax, eax
jne 0x41037d
mov eax, dword [esi + 4]
and eax, 0x7f
mov dword [esp + 0x68], eax
call fcn.004fe0e0
mov ecx, dword [esp + 0x68]
mov eax, dword [eax + ecx*4 - 4]
push esi
mov ecx, eax
call fcn.004fd530
mov ecx, eax
jmp 0x410383
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004b5db0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4105b0
mov ecx, dword [ebp + 0x48]
push edi
call fcn.00407010
push edi
mov ecx, ebx
mov esi, eax
call fcn.004b12c0
push 0
lea edx, [esp + 0x44]
push edx
push esi
lea ecx, [ebp + 0x100]
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], 0
call fcn.00406820
test eax, eax
je 0x4105b0
mov eax, dword [esp + 0x48]
cmp dword [eax], 0
je 0x4105b0
cmp dword [esp + 0x18], 1
jne 0x410517
mov ecx, dword [esp + 0x68]
mov esi, dword [ebp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004bccb0
movzx edx, ax
push edx
mov ecx, esi
call fcn.00438fc0
mov ecx, eax
call fcn.004bc570
test eax, eax
je 0x4105b0
mov ecx, eax
call fcn.004bbd50
test eax, eax
je 0x4105b0
xor eax, eax
cmp dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
jle 0x410517
mov ecx, dword [esp + 0x3c]
movzx edx, word [ecx + eax*2]
movsx eax, di
cmp eax, edx
jne 0x4104f9
mov ecx, dword [ebp + 0x48]
push edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x6c], 0
call fcn.00407010
mov edx, dword [eax]
mov esi, dword [ebx]
mov edi, dword [ebp + 0x34]
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x3c]
add esi, 0xec
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.00438fc0
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4104f5
mov ecx, dword [eax + 4]
cmp cx, 1
jb 0x4104f5
test cx, cx
je 0x4104f5
xor edx, edx
xor esi, esi
cmp dx, cx
jae 0x4104e3
mov edx, dword [eax + 8]
movzx ecx, si
mov ecx, dword [edx + ecx*4]
test ecx, ecx
je 0x4104da
mov eax, dword [esp + 0x6c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
call eax
push eax
mov ecx, ebp
call fcn.0040b180
mov eax, dword [esp + 0x68]
movzx ecx, word [eax + 4]
inc esi
cmp esi, ecx
jl 0x4104b5
mov ecx, eax
mov esi, eax
call fcn.004b8ee0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jl 0x41043f
cmp dword [esp + 0x20], 0
jne 0x4105b0
mov ecx, dword [ebp + 0x48]
push edi
mov dword [esp + 0x6c], 0
call fcn.00407010
mov edx, dword [ebp + 0x34]
mov esi, dword [ebx]
lea ecx, [esp + 0x68]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x3c]
add esi, 0xec
call eax
movzx ecx, ax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00438fc0
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4105b0
mov ecx, dword [eax + 4]
xor edx, edx
xor esi, esi
cmp dx, cx
jae 0x41059e
lea ecx, [ecx]
mov edx, dword [eax + 8]
movzx ecx, si
mov ecx, dword [edx + ecx*4]
test ecx, ecx
je 0x410595
mov eax, dword [esp + 0x6c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
call eax
push eax
mov ecx, ebp
call fcn.0040b180
mov eax, dword [esp + 0x68]
movzx ecx, word [eax + 4]
inc esi
cmp esi, ecx
jl 0x410570
mov ecx, eax
mov esi, eax
call fcn.004b8ee0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
inc edi
cmp di, word [esp + 0x24]
mov dword [esp + 0x14], edi
jle 0x410330
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 2
call fcn.005ee4c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x60], 1
call fcn.005ee4c0
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.005ee4c0
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0xc