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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
push edi
mov eax, ebp
call fcn.004100b0
fst dword [esp + 0x28]
fcomp dword [0x60675c]
fnstsw ax
test ah, 5
jp 0x410102
mov eax, dword [0x60675c]
mov dword [esp + 0x28], eax
call fcn.004d7dd0
mov ecx, eax
xor eax, eax
call fcn.004d82e0
mov ebx, eax
lea esi, [esp + 0x6c]
mov dword [esp + 0x40], ebx
call fcn.004d7a90
mov eax, ebx
call fcn.004c7bc0
mov dword [esp + 0x48], eax
mov eax, ebp
call fcn.0040e8f0
mov edx, dword [eax]
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call dword [edx + 0x40]
test byte [ebp + 0x9c], 1
mov eax, ebp
jne 0x410166
call fcn.0040e8f0
mov edx, dword [eax + 0x98]
lea ecx, [eax + 0x98]
lea eax, [esp + 0x4c]
push eax
call dword [edx + 8]
jmp 0x410201
call fcn.0040e8f0
mov ecx, dword [eax + 0x190]
lea edx, [esp + 0x20]
lea esi, [esp + 0x30]
lea edi, [esp + 0x2c]
call fcn.004e9280
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
lea ecx, [edx - 1]
cmp eax, ecx
jge 0x4101ea
add eax, 0x14
cmp eax, edx
jl 0x41019a
mov eax, ecx
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax*2]
fld dword [edx + ecx*4]
lea eax, [edx + ecx*4]
fsub dword [esp + 0x34]
fstp dword [esp + 0x14]
fld dword [eax + 4]
fsub dword [esp + 0x38]
fstp dword [esp + 0x18]
fld dword [eax + 8]
mov ecx, dword [esp + 0x18]
fsub dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x4c]
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
call fcn.00405430
fstp st(0)
jmp 0x410201
mov eax, ebp
call fcn.0040e8f0
lea ecx, [eax + 0x98]
mov eax, dword [ecx]
lea edx, [esp + 0x4c]
push edx
call dword [eax + 8]
fld dword [esp + 0x4c]
lea eax, [ebp + 0x44]
fmul dword [esp + 0x28]
mov dword [esp + 0x84], 0
fld dword [esp + 0x50]
mov dword [esp + 0x88], 0x3f800000
fmul dword [esp + 0x28]
mov dword [esp + 0x8c], 0
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
fstp dword [esp + 0xa8]
fxch st(1)
fadd dword [esp + 0x34]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
fadd dword [esp + 0x38]
fstp dword [esp + 0x18]
fld dword [esp + 0xa8]
mov edx, dword [esp + 0x18]
fadd dword [esp + 0x3c]
mov dword [eax + 4], edx
lea edx, [esp + 0x4c]
push edx
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x68]
call fcn.00560b90
lea ecx, [esp + 0x60]
call fcn.00405430
fstp st(0)
mov eax, ebp
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3f800000
call fcn.0040e8f0
mov edx, dword [eax]
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call dword [edx + 0x18]
call fcn.004daf30
mov edx, dword [eax + 0x1a4]
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], 0x47c35000
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x13], cl
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
jmp 0x410320
mov eax, dword [esp + 0x5c]
jmp 0x410320
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x58]
jge 0x41044e
mov ebx, dword [eax + ecx*4 + 0xb4]
test ebx, ebx
je 0x410438
inc edx
mov eax, ebp
mov dword [esp + 0x20], edx
call fcn.0040e8f0
cmp ebx, eax
je 0x410438
cmp dword [ebx + 0x184], 1
jne 0x410394
mov al, byte [ebp + 0x9c]
mov edx, dword [ebp + 0x5c]
test al, 1
mov eax, dword [ebx + 0x190]
je 0x410375
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx + 0x5c]
jmp 0x41038c
mov cl, byte [eax + 0x348]
test cl, cl
je 0x410386
call fcn.004e8d80
jmp 0x41038c
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x5c]
cmp eax, edx
jne 0x410438
mov edx, dword [ebx]
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call dword [edx + 0x40]
fld dword [0x606768]
mov ecx, dword [esp + 0x28]
fadd st(0), st(0)
push ecx
push ecx
fstp dword [esp]
lea edi, [esp + 0x1a]
lea eax, [esp + 0x80]
lea edx, [esp + 0x68]
lea esi, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.004babc0
add esp, 8
test al, al
je 0x410438
fld dword [esp + 0x34]
fsub dword [esp + 0x78]
fld dword [esp + 0x38]
fsub dword [esp + 0x7c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x80]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x410436
mov edi, dword [esp + 0x48]
fstp dword [esp + 0x24]
mov al, byte [esp + 0x12]
xor edx, edx
cmp ebx, edi
setne dl
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x13], al
dec edx
and edx, 3
inc edx
mov dword [esp + 0x44], edx
jmp 0x410438
fstp st(0)
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
inc ecx
cmp ecx, 0x1e
mov dword [esp + 0x30], ecx
jl 0x41030f
fld dword [0x606770]
mov eax, ebx
fadd dword [0x606768]
fstp dword [esp + 0x40]
call fcn.004d7a70
test al, al
jne 0x4104f3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
push ecx
push edx
lea edi, [esp + 0x1a]
lea eax, [esp + 0x74]
lea edx, [esp + 0x68]
lea esi, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.004babc0
add esp, 8
test al, al
je 0x4104f3
fld dword [esp + 0x34]
fsub dword [esp + 0x6c]
fld dword [esp + 0x38]
fsub dword [esp + 0x70]
fld dword [esp + 0x3c]
fsub dword [esp + 0x74]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x4104f1
mov eax, ebx
fstp dword [esp + 0x24]
mov dword [esp + 0x44], 3
call fcn.004a7890
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x12]
mov byte [esp + 0x13], al
jmp 0x4104f3
fstp st(0)
mov dword [esp + 0x20], 0
call fcn.004ffc40
mov ecx, dword [eax + 0x40]
mov esi, 0x18
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x48]
jge 0x41061b
call fcn.004ffc40
mov ebx, dword [eax + esi]
test ebx, ebx
je 0x410607
mov eax, dword [ebx + 0x108]
test eax, eax
je 0x410567
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
add ecx, 0x48
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 8]
lea edx, [ebx + 0x2b4]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00560c60
jmp 0x41057f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
lea edi, [esp + 0x1a]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x68]
lea esi, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.004babc0
add esp, 8
test al, al
je 0x410607
fld dword [esp + 0x34]
fsub dword [esp + 0x14]
fld dword [esp + 0x38]
fsub dword [esp + 0x18]
fld dword [esp + 0x3c]
fsub dword [esp + 0x1c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x410605
mov dl, byte [esp + 0x12]
fstp dword [esp + 0x24]
mov dword [esp + 0x44], 2
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x13], dl
jmp 0x410607
fstp st(0)
mov esi, dword [esp + 0x30]
add esi, 4
cmp esi, 0x40
mov dword [esp + 0x30], esi
jl 0x410510
test byte [ebp + 0x9c], 1
jne 0x41073f
cmp dword [ebp + 0x50], 4
je 0x41073f
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [eax + 4]
mov eax, ecx
mov dword [esp + 0x48], ecx
call fcn.004bbef0
cmp eax, 1
jne 0x41073f
cmp ecx, dword [ebp + 0x7c]
je 0x41073f
cmp dword [ebp + 0x54], 2
jne 0x410674
fld dword [ebp + 0x78]
fcomp dword [0x617efc]
fnstsw ax
test ah, 0x41
jne 0x41073f
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp + 0x60]
mov edx, dword [eax + 0x18]
push ecx
push 0x3f800000
dec edx
call fcn.004bcba0
lea edi, [esp + 0xa8]
lea ebx, [esp + 0x1c]
mov esi, eax
call fcn.004c03e0
mov edx, dword [esp + 0x28]
mov eax, dword [0x606768]
push edx
push eax
lea edi, [esp + 0x1a]
lea eax, [esp + 0x1c]
lea edx, [esp + 0x68]
lea esi, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.004babc0
add esp, 8
test al, al
je 0x41073f
fld dword [esp + 0x14]
fsub dword [esp + 0x34]
fld dword [esp + 0x18]
fsub dword [esp + 0x38]
fld dword [esp + 0x1c]
fsub dword [esp + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x41073d
mov ecx, dword [esp + 0x48]
fstp dword [esp + 0x24]
mov dl, byte [esp + 0x12]
mov eax, dword [esp + 0x14]
add ebp, 0xa8
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebp], eax
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov dword [esp + 0x44], 0x63
mov dword [ebp + 8], edx
jmp 0x41073f
fstp st(0)
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov dword [eax], edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc0]
pop edi
pop esi
mov dword [ecx], edx
mov cl, byte [esp + 0xb]
pop ebp
mov byte [eax], cl
pop ebx
add esp, 0x9c
ret 0x14