Function at 0x100183a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10039c2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xffffffffffffffff
mov eax, dword [esi + 8]
mov ecx, ebx
push eax
call sub.mfc42u.dll_CDWordArray::SetSize_1
lea eax, [esp + 0xa8]
push 1
push eax
mov ecx, esi
call fcn.10019f50
mov edi, eax
lea ecx, [esp + 0x58]
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x180], 0
call fcn.10019f50
mov dword [esp + 0xc], eax
lea edx, [esp + 0x30]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x180], 1
call fcn.10019f50
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
push 0
push eax
mov ecx, esi
mov byte [esp + 0x180], 2
call fcn.10019f50
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
fld dword [edi + 4]
fsub dword [ecx + 4]
sub esp, 8
sub esp, 8
fstp qword [esp + 8]
fld dword [edx]
fsub dword [eax]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fstp qword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x94]
call fcn.100013e0
lea ecx, [esp + 0x44]
mov byte [esp + 0x178], 1
call fcn.100013e0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x178], 0
call fcn.100013e0
lea ecx, [esp + 0xbc]
mov dword [esp + 0x178], 0xffffffff
call fcn.100013e0
mov eax, dword [esi + 8]
mov edi, 2
cmp eax, edi
jle 0x100186cd
lea eax, [esp + 0x80]
push edi
push eax
mov ecx, esi
call fcn.10019f50
mov dword [esp + 0x10], eax
lea ebx, [edi - 2]
lea ecx, [esp + 0x30]
mov dword [esp + 0x178], 3
lea eax, [ebx + 1]
push eax
push ecx
mov ecx, esi
call fcn.10019f50
mov dword [esp + 0xc], eax
lea edx, [esp + 0x58]
push edi
push edx
mov ecx, esi
mov byte [esp + 0x180], 4
call fcn.10019f50
mov dword [esp + 0x14], eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x180], 5
call fcn.10019f50
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esp, 8
fld dword [ecx + 4]
fsub dword [edx + 4]
mov ecx, dword [esp + 0x1c]
sub esp, 8
fstp qword [esp + 8]
fld dword [ecx]
fsub dword [eax]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fstp qword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0xbc]
call fcn.100013e0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x178], 4
call fcn.100013e0
lea ecx, [esp + 0x44]
mov byte [esp + 0x178], 3
call fcn.100013e0
lea ecx, [esp + 0x94]
mov dword [esp + 0x178], 0xffffffff
call fcn.100013e0
lea edx, [esp + 0x148]
push edi
push edx
mov ecx, esi
call fcn.10019f50
mov dword [esp + 0x14], eax
lea eax, [esp + 0xf8]
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x180], 6
call fcn.10019f50
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x120]
push edi
push ecx
mov ecx, esi
mov byte [esp + 0x180], 7
call fcn.10019f50
mov dword [esp + 0xc], eax
mov byte [esp + 0x178], 8
lea edx, [esp + 0xd0]
push ebx
push edx
mov ecx, esi
call fcn.10019f50
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub esp, 8
fld dword [ecx + 4]
fsub dword [edx + 4]
mov ecx, dword [esp + 0x14]
sub esp, 8
fstp qword [esp + 8]
fld dword [ecx]
fsub dword [eax]
fstp qword [esp]
call dword [sym.imp.msvcrt.dll__hypot]
fstp qword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0xe4]
call fcn.100013e0
lea ecx, [esp + 0x134]
mov byte [esp + 0x178], 7
call fcn.100013e0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x178], 6
call fcn.100013e0
lea ecx, [esp + 0x15c]
mov dword [esp + 0x178], 0xffffffff
call fcn.100013e0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x30]
lea ebx, [eax + edi*4 - 4]
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.100182f0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 0x18
mov dword [ebx], eax
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jl 0x100184bb
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov esi, 1
mov dword [eax], esi
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov dword [edx + ecx*4 - 4], esi
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp eax, esi
mov edx, esi
jle 0x1001871f
mov eax, dword [ebx + 4]
cmp dword [eax + edx*4], 0
je 0x10018716
cmp ecx, 4
jge 0x10018712
cmp ecx, esi
jl 0x10018712
lea eax, [edx*4 - 4]
mov edi, dword [ebx + 4]
sub eax, 4
dec ecx
mov dword [eax + edi + 4], esi
jne 0x10018705
xor ecx, ecx
jmp 0x10018717
inc ecx
mov eax, dword [ebx + 8]
inc edx
cmp edx, eax
jl 0x100186ec
mov ecx, dword [esp + 0x170]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret