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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003a241
push eax
mov eax, 0x8184
mov dword fs:[0], esp
call fcn.10038780
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0xc], 0
jle 0x10022e0e
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
lea edi, [ecx + 0x30]
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x10022dec
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
lea ebx, [edx + 0x30]
mov eax, dword [edi - 0x30]
cmp eax, 2
je 0x100228b0
cmp dword [ebx - 0x30], 2
jne 0x10022d39
mov ecx, dword [ebx - 0x30]
add ecx, eax
cmp ecx, 2
jne 0x10022943
cmp eax, ecx
jne 0x100228d5
lea edx, [esp + 0x178]
lea eax, [esp + 0x38]
push edx
push eax
push edi
mov esi, ebx
push ebx
jmp 0x100228e6
lea ecx, [esp + 0x178]
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
mov esi, edi
push edi
call fcn.1001cbe0
add esp, 0x10
test eax, eax
jle 0x10022d39
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, edx
shl ecx, 4
add edx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + ecx + 0x190]
fld qword [eax]
fld st(0)
fmul qword [esi + 0x10]
add ecx, 0x10
add eax, 8
dec edx
fadd qword [esi]
fstp qword [ecx - 0x10]
fmul qword [esi + 0x18]
fadd qword [esi + 8]
fstp qword [ecx - 8]
jne 0x10022920
jmp 0x10022d39
cmp ecx, 4
jne 0x10022b99
fld dword [0x1003ced0]
fmul qword [0x1003cbe8]
sub esp, 8
lea edx, [esp + 0x2198]
mov ecx, edi
fstp qword [esp]
push 0x400
push edx
call fcn.10025910
fld dword [0x1003ced0]
fmul qword [0x1003cbe8]
sub esp, 8
mov esi, eax
lea eax, [esp + 0x4198]
mov ecx, ebx
mov dword [esp + 0x1c], esi
fstp qword [esp]
push 0x400
push eax
call fcn.10025910
lea ecx, [esp + 0x128]
mov dword [esp + 0x1c], eax
call fcn.10023ef0
lea ecx, [esp + 0x150]
mov dword [esp + 0x8198], 0
call fcn.10023ef0
mov edx, dword [esp + 0x2194]
mov eax, dword [esp + 0x2190]
lea ecx, [esp + 0x80]
mov byte [esp + 0x8198], 1
push ecx
push edx
push eax
mov ecx, edi
call fcn.10024100
cmp esi, 1
jle 0x10022b6e
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x2198]
dec ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x80]
mov dword [esp + 0x7c], edx
mov edx, dword [esi]
push eax
push ecx
push edx
mov ecx, edi
call fcn.10024100
lea eax, [esp + 0x80]
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x130]
call fcn.10023c90
mov eax, dword [esp + 0x4194]
mov ecx, dword [esp + 0x4190]
lea edx, [esp + 0xa0]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.10024100
mov eax, dword [esp + 0x1c]
cmp eax, 1
jle 0x10022b58
mov edx, dword [esp + 0xc]
lea esi, [esp + 0x4198]
shl edx, 4
dec eax
lea edi, [esp + edx + 0x190]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0xa0]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.10024100
lea edx, [esp + 0xa0]
lea eax, [esp + 0x90]
push edx
push eax
lea ecx, [esp + 0x158]
call fcn.10023c90
lea ecx, [esp + 0x150]
push edi
lea edx, [esp + 0x12c]
push ecx
push edx
call fcn.1001c620
add esp, 0xc
cmp eax, 1
jne 0x10022b3e
mov ecx, dword [esp + 0xc]
inc ecx
add edi, 0x10
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x20]
add esi, 8
dec eax
mov dword [esp + 0x20], eax
jne 0x10022aaa
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add esi, 8
dec eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
jne 0x10022a09
lea ecx, [esp + 0x150]
mov byte [esp + 0x8198], 0
call fcn.10032a70
mov dword [esp + 0x8198], 0xffffffff
lea ecx, [esp + 0x128]
jmp 0x10022d34
cmp eax, 2
jne 0x10022baa
mov esi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
jmp 0x10022bb4
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
mov esi, ebx
lea ecx, [esp + 0xb0]
call fcn.10023ef0
fld dword [0x1003ced0]
fmul qword [0x1003cbe8]
sub esp, 8
lea eax, [esp + 0x6198]
mov ecx, esi
mov dword [esp + 0x81a0], 2
fstp qword [esp]
push 0x400
push eax
call fcn.10025910
mov edx, dword [esp + 0x6194]
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6190]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10024100
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jle 0x10022d22
mov edx, dword [esp + 0xc]
shl edx, 4
dec ecx
lea eax, [esp + edx + 0x190]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6198]
mov dword [esp + 0x1c], eax
jmp 0x10022c4a
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10024100
lea ecx, [esp + 0x60]
lea edx, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0xb8]
call fcn.10023c90
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xd8]
push eax
mov ecx, 0xc
sub esp, 0x30
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xe4]
push ecx
call fcn.1001c670
add esp, 0x38
cmp eax, 1
jne 0x10022d04
fld qword [esp + 0xc0]
fmul qword [esp + 0xd8]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
inc edx
add eax, 0x10
fadd qword [esp + 0xb0]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], eax
fstp qword [eax - 0x10]
fld qword [esp + 0xc8]
fmul qword [esp + 0xd8]
fadd qword [esp + 0xb8]
fstp qword [eax - 8]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add ecx, 8
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jne 0x10022c42
mov edi, dword [esp + 0x10]
mov dword [esp + 0x8198], 0xffffffff
lea ecx, [esp + 0xb0]
call fcn.10032a70
mov ecx, dword [edi - 0x30]
lea eax, [edi - 0x30]
test ecx, ecx
jne 0x10022e25
mov eax, dword [ebx - 0x30]
test eax, eax
jne 0x10022d72
mov edx, dword [esp + 0xc]
shl edx, 4
lea eax, [esp + edx + 0x190]
push eax
push ebx
push edi
call fcn.1001c620
add esp, 0xc
cmp eax, 1
jne 0x10022dda
inc dword [esp + 0xc]
jmp 0x10022dda
cmp eax, 1
jne 0x10022dda
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xd8]
push ecx
mov ecx, 0xc
sub esp, 0x30
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.1001c670
add esp, 0x38
cmp eax, 1
jne 0x10022dd6
mov ecx, dword [esp + 0xc]
fld qword [esp + 0xd8]
mov eax, ecx
shl eax, 4
inc ecx
lea edx, [esp + eax + 0x190]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
fmul qword [eax + 0x10]
fadd qword [eax]
fstp qword [edx]
fld qword [esp + 0xd8]
fmul qword [eax + 0x18]
fadd qword [eax + 8]
fstp qword [edx + 8]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add ebx, 0x70
dec eax
mov dword [esp + 0x2c], eax
jne 0x1002289e
mov eax, dword [esp + 0x28]
add edi, 0x70
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], eax
jne 0x10022889
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x10022f13
xor al, al
mov ecx, dword [esp + 0x8190]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax], 1
jne 0x10022dda
mov eax, dword [ebx - 0x30]
test eax, eax
jne 0x10022e8d
lea ecx, [esp + 0xd8]
mov esi, edi
push ecx
mov ecx, 0xc
sub esp, 0x30
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.1001c670
add esp, 0x38
cmp eax, 1
jne 0x10022dd6
fld qword [esp + 0xd8]
mov eax, dword [esp + 0xc]
fmul qword [ebx + 0x10]
mov edx, eax
shl edx, 4
fadd qword [ebx]
lea ecx, [esp + edx + 0x190]
inc eax
mov dword [esp + 0xc], eax
fstp qword [ecx]
fld qword [esp + 0xd8]
fmul qword [ebx + 0x18]
fadd qword [ebx + 8]
fstp qword [ecx + 8]
jmp 0x10022dd6
cmp eax, 1
jne 0x10022dda
lea eax, [esp + 0xd8]
push eax
push ebx
push edi
call fcn.1001c150
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10022ed8
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xdc]
shl ecx, 4
lea edx, [esp + ecx + 0x190]
mov ecx, dword [esp + 0xd8]
push edx
push eax
push ecx
mov ecx, edi
call fcn.1001c490
inc dword [esp + 0xc]
cmp esi, 2
jne 0x10022dda
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0xe4]
mov edx, esi
shl edx, 4
lea eax, [esp + edx + 0x190]
mov edx, dword [esp + 0xe0]
push eax
push ecx
push edx
mov ecx, edi
call fcn.1001c490
inc esi
mov dword [esp + 0xc], esi
jmp 0x10022dda
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
fld qword [esp + 0x198]
mov eax, dword [edi]
mov edx, dword [ebx]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
sub esp, 8
fsub qword [esp + 0x48]
mov dword [esp + 0x44], ecx
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x1a0]
fsub qword [esp + 0x48]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fstp qword [esp + 0x3c]
add esp, 0x10
cmp esi, 1
jle 0x10022fe5
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x1a0]
dec ecx
mov dword [esp + 0x28], ecx
fld qword [esi + 8]
fsub qword [esp + 0x40]
sub esp, 8
sub esp, 8
fstp qword [esp + 8]
fld qword [esi]
fsub qword [esp + 0x48]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fcom qword [esp + 0x3c]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x10022fd5
mov edx, esi
fstp qword [esp + 0x2c]
mov eax, dword [edx]
mov dword [esp + 0x190], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x194], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x198], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x19c], ecx
jmp 0x10022fd7
fstp st(0)
mov eax, dword [esp + 0x28]
add esi, 0x10
dec eax
mov dword [esp + 0x28], eax
jne 0x10022f78
mov edx, dword [esp + 0x190]
mov eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x198]
mov dword [edi], edx
mov edx, dword [esp + 0x19c]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov ecx, dword [esp + 0x8190]
pop edi
mov dword [ebx + 4], edx
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret