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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x420797
sub esp, 0x38
mov eax, dword [esp + 0x3c]
test byte [eax], al
movzx ecx, byte [esp + 0x40]
test cl, cl
je 0x420555
lea ecx, [eax + 0x38]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00402260
jmp 0x420587
lea ecx, [eax + 0x50]
mov dword [esp], ecx
call fcn.00402240
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, 0x100000
adc ecx, 0
mov edx, dword [esp + 0x3c]
lea ebx, [edx + 0x38]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.00402260
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004020b0
mov eax, dword [esp + 4]
test eax, eax
jge 0x4205aa
mov ebp, 0xffffffff
mov eax, 0xffffffff
jmp 0x4206a5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0x68]
mov dword [esp], ecx
call fcn.00402240
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x3c]
lea ebx, [edx + 0x78]
mov dword [esp], ebx
call fcn.00402240
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x80]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x14]
mov ebp, ecx
add ecx, ebx
mov esi, edx
add edx, ecx
mov dword [esp + 0x2c], edx
mov edi, eax
mov eax, dword [esp + 0x20]
mul edx
mov edi, dword [edi + 0x84]
mov dword [esp + 0x28], edi
add ebx, ebp
mov ebx, dword [esp + 0x1c]
adc ebx, edi
mov edi, dword [esp + 8]
add esi, ecx
adc ebx, edi
mov ecx, dword [esp + 0x20]
imul ebx, ecx
sar ecx, 0x1f
mov esi, dword [esp + 0x2c]
imul ecx, esi
add ecx, edx
add ecx, ebx
mov edx, ecx
shr ecx, 1
mov ebx, eax
mov eax, 0xa3d70a3e
mov esi, edx
mul ecx
shr edx, 5
imul eax, edx, 0x64
sub esi, eax
mov eax, 0x28f5c28
mov ecx, edx
mul esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
mov edi, ebx
shr ebx, 1
mov eax, 0xa3d70a3e
mul ebx
shr edx, 5
mov eax, edx
add edx, 0
adc ecx, 0
mov ebx, dword [esp + 0x24]
add edx, ebx
mov ebx, dword [esp + 0x2c]
adc ecx, ebx
imul eax, eax, 0x64
sub edi, eax
lea eax, [esi + esi*2]
shl eax, 5
add eax, edi
shr eax, 1
mov ebx, eax
mov eax, 0xa3d70a3e
mov esi, edx
mul ebx
shr edx, 5
add edx, esi
adc ecx, 0
add ebp, edx
mov eax, dword [esp + 0x28]
adc eax, ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
cmp eax, edx
setb bl
xchg esi, ebx
sete bl
xchg esi, ebx
mov edi, dword [ecx + 0x10]
cmp ebp, edi
setb cl
and esi, ecx
or ebx, esi
test bl, bl
jne 0x4206cc
mov edx, eax
mov edi, ebp
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0x30]
mov dword [esp], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call fcn.00402260
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0x68]
mov dword [esp], ecx
call fcn.00402240
mov eax, dword [esp + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x3c]
lea ebx, [edx + 0x78]
mov dword [esp], ebx
call fcn.00402240
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x64]
mov ebx, dword [esp + 0x10]
add ecx, ebx
mov ebx, dword [esp + 0x18]
adc edx, ebx
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
add ebx, ecx
adc edx, ebp
movsd xmm0, qword [0x761ed0]
mulsd xmm0, qword [eax + 0x20]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0045d220
movsd xmm0, qword [0x761f00]
movsd xmm1, qword [esp + 0x30]
mulsd xmm0, xmm1
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.0045d100
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
add edx, 0x18
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00402260
add esp, 0x38
ret
call fcn.00462c30
jmp fcn.00420510