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

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
push edi
push edi
push edi
push edi
push edi
push edi
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], edi
call fcn.0040c290
add esp, 0x18
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
xor ebx, ebx
mov dword [esp + 0x14], edi
call fcn.0040eff0
mov eax, dword [0x2543970]
imul eax, dword [esp + 0x20]
add ebp, eax
cmp ebp, 0x7c0
jle 0x41316d
cmp dword [esp + 0x24], edi
jne 0x4130ba
call fcn.00409430
mov dword [esp + 0x24], 1
mov ebp, 0x7c0
cmp dword [esp + 0x24], edi
je 0x413303
fld dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x413266
mov ebx, dword [esp + 0x14]
call fcn.00409460
mov esi, eax
cmp esi, 0x26
je 0x4130f4
cmp esi, dword [0x25b6110]
jne 0x41310d
cmp dword [esp + 0x14], edi
jle 0x41310d
push 0x15
call fcn.0040aea0
mov eax, dword [esp + 0x18]
add esp, 4
dec eax
mov dword [esp + 0x14], eax
cmp esi, 0x28
je 0x41311a
cmp esi, dword [0x25b6114]
jne 0x413134
cmp dword [esp + 0x14], 4
jge 0x413134
push 0x15
call fcn.0040aea0
mov eax, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esp + 0x14], eax
cmp esi, 0xd
je 0x41314f
cmp esi, 0x20
je 0x41314f
cmp esi, 0x27
je 0x41314f
cmp esi, dword [0x25b611c]
jne 0x41323c
cmp ebx, 1
mov dword [esp + 0x20], 0xfffffffc
jne 0x4131f7
mov dword [esp + 0x20], 0xfffffff9
jmp 0x41322e
cmp ebp, edi
jge 0x4130bf
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 4
jne 0x4131a9
call fcn.00424870
cmp dword [0x2544248], edi
je 0x413303
cmp dword [0x254424c], edi
jne 0x41366b
jmp 0x413303
cmp ebx, 1
jne 0x4131c0
call fcn.00413680
mov dword [esp + 0x20], 7
jmp 0x413303
cmp ebx, 2
jne 0x4131da
mov ecx, dword [0x25b610c]
push ecx
push edi
call fcn.0040f1a0
add esp, 8
jmp 0x413303
cmp ebx, 3
jne 0x4131e9
call fcn.00411030
jmp 0x413303
cmp ebx, 4
je 0x413670
jmp 0x413303
cmp ebx, 4
jne 0x41322e
push 0x3a83126f
mov dword [esp + 0x24], 0xfffffffe
mov dword [0x43fd2c], 0xb9d1b717
call fcn.0040b2b0
mov eax, dword [0x25b6120]
add esp, 4
cmp eax, edi
je 0x41322e
push 0x28
call fcn.0040aea0
add esp, 4
push 0x16
mov dword [esp + 0x28], edi
call fcn.0040aea0
add esp, 4
cmp esi, 0x1b
je 0x413246
cmp esi, 8
jne 0x413266
cmp ebx, 4
je 0x413266
push 0x15
call fcn.0040aea0
mov ebx, 4
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0xbc449ba6
mov edx, dword [esp + 0x14]
neg edx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fmul dword [0x43a3b8]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4132c1
mov eax, dword [0x2543970]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], eax
fild qword [esp + 0x54]
fmul dword [0x43a3b4]
fadd dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x413303
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x413303
fld dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x413303
mov edx, dword [0x2543970]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edx
fild qword [esp + 0x44]
fmul dword [0x43a3b4]
fsubr dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x413303
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov ecx, dword [0x2543970]
mov dword [esp + 0x68], edi
lea eax, [esp + 0x6c]
lea edx, [ecx + ecx]
push eax
mov dword [esp + 0x68], edx
fild qword [esp + 0x68]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
call fcn.004012b0
fld dword [esp + 0x2c]
call fcn.00430d2c
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.004012f0
lea edx, [esp + 0x78]
push 0x3e4ccccd
push edx
call fcn.00401480
mov ecx, dword [0x257de0c]
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.00401610
mov edx, ebp
sar edx, 3
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fstp dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
push esi
push esi
call fcn.0040c1d0
mov eax, dword [0x43fd34]
add esp, 0x28
cmp eax, edi
je 0x413395
call fcn.00405eb0
dec dword [0x43fd34]
call fcn.00406080
test eax, eax
je 0x41308a
push edi
call fcn.00405a20
mov eax, dword [0x2543970]
push eax
call fcn.004120b0
push 1
call fcn.00405a20
push 3
call fcn.004059f0
mov ecx, dword [0x2543970]
push ecx
call fcn.00412220
fld dword [0x43fd28]
mov edx, dword [0x43fd30]
add esp, 0x14
fmul dword [0x43a2f8]
push edx
push 0xfffffe00
push edi
push 0xbb449ba6
fsubr dword [0x43a3b0]
push ecx
fstp dword [esp]
push edi
call fcn.0040c290
push 0x3e99999a
push 0x3f333333
push 0xbf490fdb
push 0xbf490fdb
call fcn.0040e3c0
push esi
push esi
push esi
call fcn.0040c1d0
fld dword [esp + 0x44]
fsub dword [0x43a3a4]
mov eax, dword [0x2581fd8]
fstp dword [esp + 0x50]
mov esi, dword [esp + 0x50]
push esi
push edi
push 0xbc1374bc
push eax
call fcn.0040c390
mov ecx, dword [0x2581fd8]
add esp, 0x44
push esi
push edi
push 0x3c1374bc
push ecx
call fcn.0040c390
push 4
call fcn.004059f0
add esp, 0x14
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x14]
fld dword [esi*4 + 0x43fd38]
cmp esi, eax
jne 0x413520
fcomp dword [0x43a280]
mov ecx, dword [0x2543970]
fnstsw ax
test ah, 1
je 0x4134c7
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
fild qword [esp + 0x34]
fmul dword [0x43a3ac]
fadd dword [esi*4 + 0x43fd38]
fst dword [esi*4 + 0x43fd38]
fcomp dword [0x43a280]
fnstsw ax
test ah, 0x41
jne 0x4134c7
mov dword [esi*4 + 0x43fd38], 0x3f800000
fld dword [esi*4 + 0x43fd50]
fcomp dword [0x43a3a8]
fnstsw ax
test ah, 1
je 0x4135b7
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
fild qword [esp + 0x3c]
fmul dword [0x43a314]
fadd dword [esi*4 + 0x43fd50]
fst dword [esi*4 + 0x43fd50]
fcomp dword [0x43a3a8]
fnstsw ax
test ah, 0x41
jne 0x4135b7
mov dword [esi*4 + 0x43fd50], 0x3f933333
jmp 0x4135b7
fcomp dword [0x43a2b8]
mov ecx, dword [0x2543970]
fnstsw ax
test ah, 0x41
jne 0x41356b
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edi
fild qword [esp + 0x4c]
fmul dword [0x43a3ac]
fsubr dword [esi*4 + 0x43fd38]
fst dword [esi*4 + 0x43fd38]
fcomp dword [0x43a2b8]
fnstsw ax
test ah, 1
je 0x41356b
mov dword [esi*4 + 0x43fd38], 0x3f19999a
fld dword [esi*4 + 0x43fd50]
fcomp dword [0x43a280]
fnstsw ax
test ah, 0x41
jne 0x4135b7
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
fild qword [esp + 0x5c]
fmul dword [0x43a314]
fsubr dword [esi*4 + 0x43fd50]
fst dword [esi*4 + 0x43fd50]
fcomp dword [0x43a280]
fnstsw ax
test ah, 1
je 0x4135b7
mov dword [esi*4 + 0x43fd50], 0x3f800000
fld dword [esp + 0x2c]
fmul dword [esi*4 + 0x43fd38]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
push eax
push eax
push eax
call fcn.0040c1d0
lea edx, [esp + 0x78]
push edx
call fcn.004012b0
mov eax, dword [esi*4 + 0x43fd50]
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.00401480
add esp, 0x18
lea edx, [esp + 0x6c]
cmp esi, 4
push edx
jne 0x41361e
mov eax, dword [0x258433c]
push eax
call fcn.00401610
mov ecx, dword [0x25b4384]
push 0xbc5d2f1b
push edi
push edi
push ecx
call fcn.0040c390
add esp, 0x18
jmp 0x413653
mov eax, dword [esi*4 + 0x2584328]
push eax
call fcn.00401610
fild dword [esp + 0x24]
mov ecx, dword [esi*4 + 0x25b4370]
add esp, 4
fmul dword [0x43a33c]
fsub dword [0x43a3a4]
fstp dword [esp]
push edi
push edi
push ecx
call fcn.0040c390
add esp, 0x10
inc esi
cmp esi, 5
mov dword [esp + 0x1c], esi
jl 0x413469
call fcn.00406110
jmp 0x41308a
call fcn.0040ffa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret