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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
push edi
sub eax, edx
mov edx, dword [ebp + 0x14]
sar eax, 1
push edx
mov dword [esp + 0x1c], esi
lea ecx, [eax + eax*2]
add esi, 0xfffffff4
lea edi, [ebx + ecx*4]
push esi
push edi
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00421810
add esp, 0x10
fldz
lea esi, [edi + 0xc]
mov ecx, edi
mov dword [esp + 0x14], esi
cmp ebx, edi
jae 0x421d28
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [esp + 0xc], ebx
jmp 0x421c6f
mov ebx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
lea edx, [eax + eax*2]
mov eax, dword [ecx - 8]
fld qword [ebx + edx*8 + 8]
fld qword [ebx + edx*8]
lea eax, [eax + eax*2]
fsub qword [ebx + eax*8]
lea edi, [ebx + eax*8]
mov eax, dword [ecx]
fxch st(1)
lea edx, [ebx + edx*8]
fsub qword [edi + 8]
lea eax, [eax + eax*2]
fld st(1)
lea eax, [ebx + eax*8]
fmulp st(2)
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
fxch st(1)
lea eax, [eax + eax*2]
fadd st(2)
lea ebx, [ebx + eax*8]
mov eax, dword [esp + 0x10]
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [eax + 8]
fld qword [eax]
fsub qword [ebx]
fxch st(1)
fsub qword [ebx + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x421d28
mov eax, dword [esp + 0x10]
fld qword [eax + 8]
fld qword [eax]
fsub qword [ebx]
fxch st(1)
fsub qword [ebx + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [edx + 8]
fld qword [edx]
fsub qword [edi]
fxch st(1)
fsub qword [edi + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x421d28
add ecx, 0xfffffff4
cmp dword [esp + 0x1c], ecx
jb 0x421c6b
cmp esi, dword [esp + 0x18]
jae 0x421e01
mov edx, dword [ebp + 0x14]
mov edi, dword [edx]
mov eax, dword [ecx]
lea eax, [eax + eax*2]
lea ebx, [edi + eax*8]
mov eax, dword [ecx + 4]
lea edx, [eax + eax*2]
lea eax, [edi + edx*8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
jmp 0x421d56
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
fld qword [edi + edx*8 + 8]
fld qword [edi + edx*8]
lea edx, [edi + edx*8]
lea eax, [eax + eax*2]
fsub qword [edi + eax*8]
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
fxch st(1)
fsub qword [edi + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [ebx]
fld qword [ebx + 8]
fxch st(1)
fsub qword [eax]
fxch st(1)
fsub qword [eax + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x421dfd
fld qword [ebx]
mov eax, dword [esp + 0x10]
fld qword [ebx + 8]
fxch st(1)
fsub qword [eax]
fxch st(1)
fsub qword [eax + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [edx + 8]
fld qword [edx]
fsub qword [edi]
fxch st(1)
fsub qword [edi + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x421dfd
add esi, 0xc
cmp esi, dword [esp + 0x18]
jb 0x421d52
mov dword [esp + 0x14], esi
mov eax, ecx
mov edx, esi
mov dword [esp + 0x10], eax
cmp edx, dword [esp + 0x18]
jae 0x421f1b
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx]
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
mov dword [esp + 0x14], ebx
mov ebx, dword [edx]
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
mov dword [esp + 0xc], ebx
mov ebx, dword [edx + 4]
lea edi, [edi + edi*2]
fld qword [eax + edi*8]
lea edi, [eax + edi*8]
fld qword [edi + 8]
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
fxch st(1)
mov eax, dword [esp + 0x14]
fsub qword [eax]
fxch st(1)
fsub qword [eax + 8]
mov eax, dword [esp + 0xc]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [eax + 8]
fld qword [eax]
fsub qword [ebx]
fxch st(1)
fsub qword [ebx + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x421f06
mov eax, dword [esp + 0xc]
fld qword [eax + 8]
fld qword [eax]
mov eax, dword [esp + 0x14]
fsub qword [ebx]
fxch st(1)
fsub qword [ebx + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [edi]
fld qword [edi + 8]
fxch st(1)
fsub qword [eax]
fxch st(1)
fsub qword [eax + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x421f13
mov eax, esi
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0x68], ebx
mov ebx, dword [eax + 8]
mov dword [esp + 0x6c], ebx
mov ebx, dword [edx]
mov dword [eax], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edx + 8]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x68]
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x6c]
add esi, 0xc
mov dword [edx + 8], eax
add edx, 0xc
cmp edx, dword [esp + 0x18]
jb 0x421e13
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, dword [esp + 0x1c]
jbe 0x422038
lea esi, [eax - 0xc]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
mov dword [esp + 0x20], ebx
mov ebx, dword [ecx]
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
mov dword [esp + 0xc], ebx
mov ebx, dword [ecx + 4]
lea edi, [edi + edi*2]
fld qword [eax + edi*8]
lea edi, [eax + edi*8]
fld qword [edi + 8]
lea ebx, [ebx + ebx*2]
lea ebx, [eax + ebx*8]
fxch st(1)
mov eax, dword [esp + 0x20]
fsub qword [eax]
fxch st(1)
fsub qword [eax + 8]
mov eax, dword [esp + 0xc]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [eax + 8]
fld qword [eax]
fsub qword [ebx]
fxch st(1)
fsub qword [ebx + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x422012
mov eax, dword [esp + 0xc]
fld qword [eax + 8]
fld qword [eax]
mov eax, dword [esp + 0x20]
fsub qword [ebx]
fxch st(1)
fsub qword [ebx + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(2)
fld st(1)
fmulp st(2)
faddp st(1)
fld qword [edi]
fld qword [edi + 8]
fxch st(1)
fsub qword [eax]
fxch st(1)
fsub qword [eax + 8]
fld st(1)
fmulp st(2)
fxch st(1)
fadd st(3)
fld st(1)
fmulp st(2)
faddp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x42202c
mov ebx, dword [ecx - 4]
mov eax, dword [ecx - 0xc]
mov edi, dword [ecx - 8]
sub ecx, 0xc
mov dword [esp + 0x78], ebx
mov ebx, dword [esi]
mov dword [ecx], ebx
mov ebx, dword [esi + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [esi + 8]
mov dword [ecx + 8], ebx
mov dword [esi], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
sub eax, 0xc
sub esi, 0xc
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], eax
jb 0x421f28
jmp 0x422030
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jne 0x4220dc
cmp edx, dword [esp + 0x18]
je 0x422194
cmp esi, edx
je 0x42207c
mov ebx, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x50], ebx
mov ebx, dword [ecx + 8]
mov dword [esp + 0x54], ebx
mov ebx, dword [esi]
mov dword [ecx], ebx
mov ebx, dword [esi + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [esi + 8]
mov dword [ecx + 8], ebx
mov dword [esi], edi
mov edi, dword [esp + 0x50]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x54]
mov dword [esi + 8], edi
mov edi, ecx
mov ebx, dword [edi]
mov dword [esp + 0x28], ebx
mov ebx, dword [edi + 4]
mov dword [esp + 0x2c], ebx
mov ebx, dword [edi + 8]
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx]
mov dword [edi], ebx
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0xc]
mov ebx, dword [ebx + 8]
mov dword [edi + 8], ebx
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x28]
mov dword [edi], ebx
mov ebx, dword [esp + 0x2c]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x30]
add esi, 0xc
add ecx, 0xc
mov dword [esp + 0x14], esi
add edx, 0xc
mov dword [edi + 8], ebx
jmp 0x421e09
sub eax, 0xc
mov dword [esp + 0x10], eax
cmp edx, dword [esp + 0x18]
jne 0x42215c
sub ecx, 0xc
cmp eax, ecx
je 0x422120
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], ebx
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [eax + 8], ebx
mov dword [ecx], edi
mov edi, dword [esp + 0x38]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x3c]
mov dword [ecx + 8], edi
mov ebx, dword [ecx + 4]
mov edi, dword [ecx]
sub esi, 0xc
mov dword [esp + 0x44], ebx
mov ebx, dword [ecx + 8]
mov dword [esp + 0x48], ebx
mov ebx, dword [esi]
mov dword [ecx], ebx
mov ebx, dword [esi + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [esi + 8]
mov dword [ecx + 8], ebx
mov dword [esi], edi
mov edi, dword [esp + 0x44]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], esi
mov dword [esi + 8], edi
jmp 0x421e09
mov ebx, dword [edx + 4]
mov edi, dword [edx]
mov dword [esp + 0x5c], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0x60], ebx
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov dword [eax], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 8], edi
add edx, 0xc
jmp 0x421e09
mov eax, dword [esp + 0x24]
fstp st(0)
pop edi
mov dword [eax + 4], esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
pop esi
pop ebx
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret