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

Disassembly:
jmp 0x41b390
push 0xffffffffffffffff
push 0x50974b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x178c]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x13ec
jg 0x41b734
mov esi, dword [ecx + eax*4 + 0x1f48]
test esi, esi
mov dword [esp + 0x14], esi
je 0x41b734
mov ebx, dword [esp + 0x60]
lea eax, [ebx + 0xb4]
imul eax, eax, 0x3e8
cdq
mov ecx, 0x3a980
idiv ecx
cmp dword [esp + 0x50], 0
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], ebp
fmul qword [0x5119b0]
fst qword [esp + 0x24]
je 0x41b482
fild dword [esp + 0x50]
fstp qword [esp + 0x1c]
call fcn.004c42b0
fmul qword [esp + 0x1c]
call fcn.004c2db0
fld qword [esp + 0x24]
add eax, edi
mov dword [esp + 0x44], eax
call fcn.004c4180
fmul qword [esp + 0x1c]
call fcn.004c2db0
cmp dword [0x53a7c4], 0
je 0x41b47a
lea ecx, [eax*8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebp
mov dword [esp + 0x3c], eax
jmp 0x41b484
fstp st(0)
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
sub eax, 6
je 0x41b6a4
sub eax, 2
jne 0x41b734
cmp dword [esp + 0x78], eax
jne 0x41b4bb
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x41b4bb
push eax
push eax
push eax
push eax
push eax
push ebp
push edi
call fcn.004a6e90
cmp dword [esp + 0x80], 0
jne 0x41b4dd
call fcn.00401d39
mov edi, eax
shl edi, 0x10
call fcn.004c11ab
or eax, edi
mov dword [esp + 0x80], eax
movzx eax, word [esi + 0x29c]
test ax, ax
mov ebp, dword [esp + 0x74]
lea edi, [esi + 0x29c]
mov dword [esp + 0x48], 0
jle 0x41b734
mov ecx, esi
add ecx, 0x2a0
movzx ebx, ax
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x50]
fld qword [edx + 0x210]
fadd qword [esp + 0x24]
fst qword [esp + 0x1c]
call fcn.004c42b0
fmul qword [esi + 0x4b8]
call fcn.004c2db0
fld qword [esp + 0x1c]
add eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
call fcn.004c4180
fmul qword [esi + 0x4b8]
call fcn.004c2db0
cmp dword [0x53a7c4], 0
je 0x41b56f
lea ecx, [eax*8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x78], eax
movsx eax, word [edi]
mov edi, dword [esp + 0x48]
imul eax, edi
add eax, ebp
imul eax, eax, 0x2455
add eax, 0xc091
cdq
mov ecx, 0x38f40
idiv ecx
mov ebp, 0x38f40
mov eax, edx
mov ecx, eax
imul eax, eax, 0x2455
add eax, 0xc091
cdq
idiv ebp
mov eax, dword [esp + 0x50]
mov ebp, edx
mov edx, dword [esp + 0x80]
push edx
mov edx, dword [eax]
push edx
push 1
mov eax, ebp
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x78]
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [esp + 0x80]
push eax
push ecx
movsx ecx, word [esi + 0x294]
mov edx, dword [esp + 0x80]
imul ecx, ecx, 0x3a980
mov eax, dword [esp + 0x7c]
push edx
push eax
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x80]
lea eax, [ecx + edx + 0xf0]
cdq
mov ecx, 0xf0
idiv ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x80]
push edx
movsx edx, word [esi + 0x29a]
add edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x6c]
push 0
push edx
mov edx, dword [esp + 0xac]
add eax, ecx
push eax
mov eax, dword [esp + 0x7c]
push edx
movsx ecx, bx
push eax
push ecx
mov ecx, dword [esp + 0x60]
call fcn.00402590
mov edx, dword [esp + 0x14]
add dword [esp + 0x50], 0x10
add edi, 1
mov dword [esp + 0x48], edi
shl edi, 4
lea esi, [edi + edx]
movzx ebx, word [esi + 0x29c]
test bx, bx
lea edi, [esi + 0x29c]
jg 0x41b50e
jmp 0x41b734
push 0xb4
call fcn.004c1ea3
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov dword [esp + 0x34], 0
je 0x41b71a
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push ebx
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push ecx
push esi
mov ecx, eax
call fcn.004026f8
jmp 0x41b71c
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x580]
push eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004a7300
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x48