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

Disassembly:
mov eax, 0x2450
call fcn.0047e2b0
mov ecx, dword [0x496bd8]
xor eax, eax
push ebx
push ebp
push esi
push edi
test ecx, ecx
jbe 0x4039ef
lea ebx, [esp + 0xa0]
mov esi, 0x51bed8
mov edx, dword [esi - 4]
lea edi, [eax + 1]
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], edx
mov edx, dword [esi]
mov eax, edi
mov dword [esp + 0x48], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], edx
mov edx, dword [esi]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x14], edx
mov edx, dword [esi - 8]
mov dword [esp + 0x18], edx
mov edx, dword [esi - 4]
mov dword [esp + 0x1c], edx
xor edx, edx
fld dword [esi - 8]
div ecx
fst dword [esp + 0x30]
fstp dword [esp + 0x3c]
fld dword [esp + 0x18]
fsub dword [esp + 0x10]
fld dword [esp + 0x1c]
fsub dword [esp + 0x14]
fstp dword [esp + 0x94]
fmul dword [0x491460]
fadd dword [esi]
mov dword [esp + 0x38], 0xc0400000
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x5c], 0
fstp dword [esp + 0x54]
fld dword [esp + 0x94]
fmul dword [0x491460]
mov dword [esp + 0x68], 0xc0400000
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x80], 0x3f800000
mov dword [esp + 0x8c], 0
fadd dword [esi + 4]
fstp dword [esp + 0x58]
mov eax, edx
shl eax, 4
mov ecx, dword [eax + 0x51bed4]
fld dword [eax + 0x51bed0]
mov edx, ecx
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x51bed8]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x51bedc]
mov dword [esp + 0x78], ecx
fst dword [esp + 0x60]
fstp dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x51bed0]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x51bedc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
fld dword [esp + 0x28]
mov edx, dword [eax + 0x51bed4]
mov ecx, ebx
fsub dword [esp + 0x20]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x30]
fld dword [esp + 0x2c]
fsub dword [esp + 0x24]
fstp dword [esp + 0x9c]
fmul dword [0x491460]
fadd dword [eax + 0x51bed8]
fstp dword [esp + 0x84]
fld dword [esp + 0x9c]
fmul dword [0x491460]
fadd dword [eax + 0x51bedc]
fstp dword [esp + 0x88]
call fcn.004036d0
mov ecx, dword [0x496bd8]
add esi, 0x10
mov eax, edi
add ebx, 0x160
cmp eax, ecx
jb 0x40386a
test ecx, ecx
mov dword [esp + 0x20], 0
jbe 0x403bdc
lea esi, [esp + 0x114]
mov dword [esp + 0x28], esi
mov al, byte [esi + 0xe9]
test al, al
je 0x403add
mov ecx, esi
call fcn.00403040
mov edx, esi
mov ecx, 0x4a09e8
call fcn.00447fd0
mov edx, 0x4a29f0
mov ecx, 0x4a09e8
call section..text
mov ebx, dword [0x4a49f0]
mov eax, dword [0x4a49f4]
cmp ebx, eax
jg 0x403ad7
lea esi, [ebx*4 + 0x4a39f0]
cmp dword [esi - 0x1000], 0xbf800000
je 0x403ac6
fld dword [esi - 0x1000]
call fcn.0044eaa0
mov edi, eax
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fcomp dword [esi]
fnstsw ax
test ah, 0x41
je 0x403ac6
lea eax, [ebx*8]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
lea eax, [edi*8]
mov dword [esp + 0x18], eax
push ebp
fild dword [esp + 0x1c]
push ecx
xor dl, dl
fstp dword [esp]
call fcn.004011b0
inc edi
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fcomp dword [esi]
fnstsw ax
test ah, 0x41
jne 0x403a95
mov eax, dword [0x4a49f4]
inc ebx
add esi, 4
cmp ebx, eax
jle 0x403a54
mov esi, dword [esp + 0x28]
mov ecx, dword [0x496bd8]
mov al, byte [esi + 0xea]
test al, al
je 0x403bc1
lea ebx, [esi + 0x74]
mov ecx, ebx
call fcn.00403040
mov edx, ebx
mov ecx, 0x4a09e8
call fcn.00447fd0
mov edx, 0x4a29f0
mov ecx, 0x4a09e8
call section..text
mov ebp, dword [0x4a49f0]
mov eax, dword [0x4a49f4]
cmp ebp, eax
mov dword [esp + 0x18], ebp
jg 0x403bb7
lea edi, [ebp*4 + 0x4a39f0]
cmp dword [edi - 0x1000], 0xbf800000
je 0x403ba2
fld dword [edi - 0x1000]
call fcn.0044eaa0
mov esi, eax
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fcomp dword [edi]
fnstsw ax
test ah, 0x41
je 0x403ba2
lea ecx, [ebp*8]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
lea eax, [esi*8]
mov ecx, ebx
mov dword [esp + 0x10], eax
push ebp
fild dword [esp + 0x14]
push ecx
mov dl, 1
fstp dword [esp]
call fcn.004011b0
inc esi
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fcomp dword [edi]
fnstsw ax
test ah, 0x41
jne 0x403b6f
mov ebp, dword [esp + 0x18]
mov eax, dword [0x4a49f4]
inc ebp
add edi, 4
cmp ebp, eax
mov dword [esp + 0x18], ebp
jle 0x403b2e
mov ecx, dword [0x496bd8]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esi, 0x160
inc eax
mov dword [esp + 0x28], esi
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x403a0a
test ecx, ecx
mov dword [esp + 0x20], 0
jbe 0x403cd7
lea ebx, [esp + 0xa0]
mov al, byte [ebx + 0x15c]
test al, al
je 0x403cc0
mov ecx, ebx
call fcn.00403040
mov edx, ebx
mov ecx, 0x4a09e8
call fcn.00447fd0
mov edx, 0x4a29f0
mov ecx, 0x4a09e8
call section..text
mov ebp, dword [0x4a49f0]
mov eax, dword [0x4a49f4]
cmp ebp, eax
jg 0x403cba
lea esi, [ebp*4 + 0x4a39f0]
cmp dword [esi - 0x1000], 0xbf800000
je 0x403cad
fld dword [esi - 0x1000]
call fcn.0044eaa0
mov edi, eax
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fcomp dword [esi]
fnstsw ax
test ah, 0x41
je 0x403cad
lea ecx, [ebp*8]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, ebx
push eax
lea eax, [edi*8]
mov dword [esp + 0x14], eax
push ecx
fild dword [esp + 0x18]
xor dl, dl
fstp dword [esp]
call fcn.004011b0
inc edi
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fcomp dword [esi]
fnstsw ax
test ah, 0x41
jne 0x403c7a
mov eax, dword [0x4a49f4]
inc ebp
add esi, 4
cmp ebp, eax
jle 0x403c3d
mov ecx, dword [0x496bd8]
mov eax, dword [esp + 0x20]
add ebx, 0x160
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x403bf3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2450
ret