Function at 0x1016eca0
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x800
mov eax, dword [ecx]
cmp byte [eax], 0
jne 0x1016ecc5
mov esi, dword [ecx + 4]
cmp dword [esi], 0x64
jbe 0x1016ecc5
xor eax, eax
jmp 0x10170140
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
movq xmm0, qword [ecx + 0xc]
movd xmm1, eax
mov eax, dword [edx + 8]
mov byte [esp + 0x23], 0
mov dword [esp + 0x114], ecx
mov dword [esp + 0xbc], esi
lea esi, [esp + 0x23]
movd xmm2, edi
mov dword [esp + 0x110], edi
mov dword [esp + 0xb8], eax
mov dword [esp + 0x2a0], esi
mov esi, dword [ecx + 0x10]
punpckldq xmm1, xmm2
punpcklqdq xmm1, xmm0
movdqu xmmword [esp + 0x2a4], xmm1
mov dword [esp + 0x2b4], edx
mov dword [esp + 0x10c], esi
mov esi, dword [0x1048f128]
test esi, esi
je 0x1016ed46
mov edi, dword [0x1048f130]
test edi, edi
jne 0x1016f254
jmp 0x101700a2
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [0x1048f0f8]
test eax, eax
jne 0x1016ed69
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10170662
mov dword [0x1048f0f8], eax
push 0x520
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10170662
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], 4
mov dword [esp + 0xc0], 4
mov dword [esp + 0xc4], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0xc8], 0
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x1016f0f3
mov esi, eax
lea eax, [esp + 0x3d4]
push 0x424
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x3d0], 0x428
lea eax, [esp + 0x3d0]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
cmp eax, 1
jne 0x1016f0ed
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
mov dword [esp], esi
jmp 0x1016ee47
mov esi, dword [esp]
nop word cs:[eax + eax]
nop dword [eax + eax]
lea eax, [esp + 0x3d0]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
cmp eax, 1
jne 0x1016f0ed
mov eax, 0x208
xor ecx, ecx
nop
cmp word [esp + ecx*2 + 0x5f0], 0
je 0x1016ee66
inc ecx
add eax, 0xfffffffe
jne 0x1016ee50
mov ecx, 0x104
push ecx
lea eax, [esp + 0x5f4]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10169f90
add esp, 0xc
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
mov edx, ebx
lea ecx, [esp + 0x2b8]
push edi
call fcn.10183f60
add esp, 4
cmp dword [esp + 0x2b8], 0
je 0x1016ef12
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2bc]
mov esi, dword [esp + 0x2c0]
cmp ecx, 0x40
mov dword [esp + 0x10], eax
jb 0x1016ef00
test esi, esi
je 0x1016ef00
movzx eax, word [esi]
cmp eax, 0x5a4d
jne 0x1016ef00
mov eax, dword [esi + 0x3c]
mov edx, ecx
sub edx, eax
jb 0x1016ef00
cmp edx, 0x78
jb 0x1016ef00
cmp dword [esi + eax], 0x4550
jne 0x1016ef00
movzx edx, word [esi + eax + 0x18]
cmp edx, 0x10b
jne 0x1016ef00
movzx edx, word [esi + eax + 0x14]
cmp edx, 0x60
jae 0x1016ef30
nop word [eax + eax]
push esi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [esp + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [esp]
cmp dword [esp + 0x6c], 0
je 0x1016ee30
push ebx
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
jmp 0x1016ee30
cmp eax, 0xffffff87
ja 0x1016ef00
mov dword [esp + 8], edx
lea edx, [eax + 0x78]
sub ecx, edx
mov edx, dword [esp + 8]
jb 0x1016ef00
add edx, 0xffffffa0
cmp edx, ecx
ja 0x1016ef00
mov ecx, dword [esi + eax + 0x74]
cmp ecx, 0x1fffffff
ja 0x1016ef00
shl ecx, 3
cmp ecx, edx
ja 0x1016ef00
mov eax, dword [esi + eax + 0x34]
movq xmm0, qword [esp + 0x68]
movq xmm1, qword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3e4]
movq qword [esp + 0x2c0], xmm1
movq qword [esp + 0x2b8], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
push 4
push 8
call fcn.10001510
add esp, 8
test eax, eax
je 0x101706bc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3e8]
mov dword [esp + 0x14], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
lea edx, [esp + 0x75]
movzx eax, word [edx]
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
movzx eax, byte [edx + 2]
mov byte [esp + 0x52], al
movzx eax, byte [esp + 0x74]
mov byte [esp + 4], al
push esi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [esp + 0x10]
call sub.KERNEL32.dll_CloseHandle
movzx ecx, byte [esp + 4]
cmp cl, 2
je 0x1016ee1e
mov eax, dword [esp + 0xc]
movzx edx, byte [esp + 0x52]
movzx esi, word [esp + 0x50]
sub eax, dword [esp + 8]
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], 1
mov dword [esp + 0x15c], 1
mov dword [esp + 0x160], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], edi
mov byte [esp + 0x16c], cl
lea ecx, [esp + 0x16d]
mov byte [ecx + 2], dl
mov edx, dword [esp + 0x1c]
mov word [ecx], si
mov esi, dword [esp]
cmp edx, dword [esp + 0xc4]
jne 0x1016f094
lea ecx, [esp + 0xc0]
call fcn.101500b0
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc8]
jmp 0x1016f098
mov ecx, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x168]
mov eax, edx
inc edx
mov dword [esp + 0x18], ecx
shl eax, 5
mov dword [esp + 0x1c], edx
movsd qword [ecx + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x160]
movsd qword [ecx + eax + 0x10], xmm0
movq xmm0, qword [esp + 0x150]
movq xmm1, qword [esp + 0x158]
movq qword [ecx + eax + 8], xmm1
movq qword [ecx + eax], xmm0
mov dword [esp + 0xc8], edx
jmp 0x1016ee30
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x120]
movsd xmm1, qword [esp + 0x118]
movsd xmm0, qword [esp + 0xc0]
mov esi, dword [0x1048f128]
mov dword [esp + 0x3d8], eax
mov dword [esp + 0x3e4], ecx
movsd qword [esp + 0x3dc], xmm1
movsd qword [esp + 0x150], xmm0
test esi, esi
movsd xmm0, qword [esp + 0x3d8]
movsd xmm1, qword [esp + 0x3e0]
movsd qword [esp + 0x158], xmm0
movsd qword [esp + 0x160], xmm1
je 0x1016f20d
mov edi, dword [0x1048f130]
test edi, edi
je 0x1016f1b3
lea ebx, [esi + 0x14]
jmp 0x1016f186
add ebx, 0x20
dec edi
je 0x1016f1b3
cmp dword [ebx], 0
je 0x1016f19b
push dword [ebx - 4]
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebx - 0xc], 0
je 0x1016f180
push dword [ebx - 0x10]
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
jmp 0x1016f180
cmp dword [0x1048f12c], 0
je 0x1016f1ca
push esi
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [0x1048f13c]
mov esi, dword [0x1048f134]
inc ebx
mov edi, esi
nop dword [eax]
cmp ebx, 1
je 0x1016f1f6
lea ecx, [edi + 8]
add edi, 0x148
dec ebx
call fcn.1014a090
jmp 0x1016f1e0
cmp dword [0x1048f138], 0
je 0x1016f20d
push esi
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
movq xmm2, qword [esp + 0x150]
movq xmm0, qword [esp + 0x160]
movq xmm1, qword [esp + 0x158]
movq qword [0x1048f128], xmm2
movq qword [0x1048f138], xmm0
movq qword [0x1048f130], xmm1
mov esi, dword [0x1048f128]
mov edi, dword [0x1048f130]
test edi, edi
je 0x101700a2
mov eax, dword [esp + 0xb8]
mov edx, edi
xor ecx, ecx
mov ebx, esi
mov dword [esp + 4], esi
mov dword [esp + 0x18], edi
shl edx, 5
add edx, esi
sub eax, 1
cmovb eax, ecx
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
add ebx, 0x20
mov dword [esp + 0x1c], ecx
shl esi, 3
mov dword [esp], eax
nop dword [eax]
test esi, esi
je 0x1016f2c0
mov ecx, edi
add esi, 0xfffffff8
add edi, 8
mov eax, dword [ecx]
add eax, dword [esp]
cmp eax, dword [esp + 0x10]
ja 0x1016f290
add eax, dword [ecx + 4]
cmp eax, dword [esp + 0x10]
jbe 0x1016f290
jmp 0x1016f2ce
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ebx, edx
jne 0x1016f278
jmp 0x101700a2
mov eax, dword [0x1048f13c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test eax, eax
mov dword [esp + 8], eax
je 0x1016f314
mov eax, dword [0x1048f134]
imul ebx, dword [esp + 8], 0x148
xor ecx, ecx
xor esi, esi
nop word cs:[eax + eax]
nop
cmp dword [eax + esi], edx
je 0x1016f42f
add esi, 0x148
dec ecx
cmp ebx, esi
jne 0x1016f300
cmp edi, edx
jbe 0x101702e9
mov esi, dword [esp + 4]
mov eax, edx
shl eax, 5
mov edx, dword [esi + eax + 0x10]
lea ecx, [esp + 0x2b8]
push dword [esi + eax + 0x18]
call fcn.10183f60
add esp, 4
cmp dword [esp + 0x2b8], 0
je 0x101700a2
mov ebx, dword [esp + 0x2c4]
mov edx, dword [esp + 0x2c0]
mov eax, dword [esp + 0x2bc]
xor ecx, ecx
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
cmp ebx, 0x40
mov edi, edx
mov dword [esp + 0x18], eax
cmovae ecx, edx
jb 0x1016f412
movzx eax, word [ecx]
cmp eax, 0x5a4d
jne 0x1016f412
mov ecx, dword [ecx + 0x3c]
mov eax, ebx
sub eax, ecx
jb 0x1016f412
cmp eax, 0x78
jb 0x1016f412
mov edx, ecx
add edx, 0x78
setb byte [esp + 8]
cmp dword [edi + ecx], 0x4550
jne 0x1016f412
movzx eax, word [edi + ecx + 0x18]
cmp eax, 0x10b
jne 0x1016f412
movzx eax, word [edi + ecx + 0x14]
mov esi, eax
add esi, 0xffffffa0
mov dword [esp + 4], esi
mov esi, 0
adc esi, 0xffffffff
cmp eax, 0x60
mov eax, 0x24
cmovae eax, dword [esp + 4]
mov dword [esp + 4], eax
mov eax, esi
mov esi, 0
cmovb eax, esi
jb 0x1016f412
cmp ecx, 0xffffff87
jbe 0x10170181
lea ecx, [esp + 0x50]
call fcn.1014a2a0
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [esp + 0x18]
call sub.KERNEL32.dll_CloseHandle
jmp 0x101700a2
test ecx, ecx
je 0x1016f4d3
lea ecx, [eax + esi]
mov edi, eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x3d0]
push 0x148
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
sub ebx, esi
lea eax, [edi + esi + 0x148]
add ebx, 0xfffffeb8
push ebx
mov ebx, edi
push eax
push dword [esp + 0x24]
call sub.msvcrt.dll_memmove
add esp, 0xc
mov eax, dword [esp + 8]
lea esi, [eax - 1]
mov dword [0x1048f13c], esi
cmp esi, dword [0x1048f138]
jne 0x1016f497
mov ecx, esi
call fcn.101505c0
mov ebx, dword [0x1048f134]
test esi, esi
je 0x1016f4b2
lea eax, [ebx + 0x148]
imul ecx, esi, 0x148
push ecx
push ebx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
push 0x148
lea eax, [esp + 0x3d4]
push eax
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [0x1048f13c], eax
jmp 0x1016f4d5
mov ebx, eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edi, dword [ebx + 0x104]
mov dword [esp + 0x38], ebx
sub eax, dword [esp]
mov dword [esp + 0x10], eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x108]
sete cl
mov dword [esp + 0x18], ecx
test eax, eax
mov dword [esp + 0xc], eax
je 0x1016f58c
xor ebx, ebx
mov ecx, eax
mov dword [esp + 4], eax
mov dword [esp + 8], edi
jmp 0x1016f52f
mov edi, dword [esp + 8]
mov ebx, dword [esp]
mov dword [esp + 4], ecx
sub ecx, ebx
jbe 0x1016f58e
shr ecx, 1
mov dword [esp], ebx
add ecx, ebx
mov edx, ecx
shl edx, 5
mov eax, dword [edi + edx + 4]
mov ebx, dword [edi + edx]
xor edx, edx
mov esi, eax
mov edi, ebx
xor esi, dword [esp + 0x18]
xor edi, dword [esp + 0x1c]
or edi, esi
mov esi, 0
setne dl
cmp dword [esp + 0x10], ebx
sbb esi, eax
mov esi, 0xff
cmovae edx, esi
cmp dl, 1
je 0x1016f520
inc ecx
movzx eax, dl
mov ebx, ecx
cmp eax, 0xff
jne 0x1016fc36
mov ecx, dword [esp + 4]
mov edi, dword [esp + 8]
sub ecx, ebx
ja 0x1016f52f
jmp 0x1016f58e
xor ebx, ebx
mov eax, dword [esp + 0xc]
cmp ebx, eax
ja 0x1016fc46
mov esi, dword [esp + 0x38]
shl ebx, 5
lea ecx, [edi + ebx]
lea eax, [esi + 0x100]
mov dword [esp], eax
nop dword [eax]
mov edx, dword [esp + 0x10]
test ebx, ebx
je 0x1016f69f
cmp edx, dword [ecx - 0x10]
mov eax, ecx
mov ecx, 0
sbb ecx, dword [eax - 0xc]
jae 0x1016f69f
add ebx, 0xffffffe0
cmp edx, dword [eax - 0x18]
mov edx, 0
lea ecx, [eax - 0x20]
sbb edx, dword [eax - 0x14]
jae 0x1016f5b0
mov edx, dword [esp + 0x10]
cmp edx, dword [eax - 0x20]
mov edx, 0
sbb edx, dword [eax - 0x1c]
jb 0x1016f5b0
mov eax, dword [edi + ebx + 0x18]
mov ecx, dword [esi + 0x110]
cmp eax, ecx
jae 0x101702fa
mov edx, esi
imul esi, eax, 0x150
add ebx, edi
add esi, dword [edx + 0x10c]
lea ecx, [esp + 0x3d0]
mov edx, esi
push dword [esp]
call fcn.1015bf00
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x10]
mov esi, dword [esp]
cmp dword [esp + 0x3d0], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], esi
je 0x1016fc57
movsd xmm0, qword [esp + 0x3d8]
movq xmm1, qword [esp + 0x3e0]
lea ecx, [esp + 0x78]
movq qword [esp + 0xc8], xmm1
movsd qword [esp + 0xc0], xmm0
lea eax, [esp + 0xc0]
lea edx, [esp + 0x50]
push eax
call fcn.1015c3b0
add esp, 4
mov dword [esp + 0x74], 0
jmp 0x1016fd01
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x17c]
mov ebx, dword [esp + 0x184]
mov edx, dword [esp + 0x180]
mov edi, 3
movsd xmm1, qword [esp + 0x130]
movq xmm0, qword [esp + 0x128]
movq xmm2, qword [esp + 0x118]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], ecx
movsd qword [esp + 0x16c], xmm1
movq xmm1, qword [esp + 0x120]
movq qword [esp + 0x164], xmm0
movq qword [esp + 0x154], xmm2
movq qword [esp + 0x15c], xmm1
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], edx
mov dword [esp + 0x180], ebx
lea eax, [esi + 0xc8]
mov cl, 1
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x170]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x48], edx
lea edx, [eax + 0x10]
mov dword [esp + 0x2c], edx
lea edx, [eax + 0x108]
mov dword [esp + 0x44], edx
lea edx, [eax + 0x110]
add eax, 0x10c
mov dword [esp + 0x108], edx
mov edx, ebx
mov ebx, edi
mov dword [esp + 0x104], eax
nop word cs:[eax + eax]
nop
add ebx, 0xfffffffd
mov eax, 2
cmp ebx, 2
cmovb eax, ebx
cmp eax, 1
je 0x1016f8e0
cmp eax, 2
jne 0x1016fc03
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x15c]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x154]
mov esi, dword [esp + 0x158]
cmp edx, dword [esp + 0x28]
mov edi, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x150], 2
mov dword [esp + 0x18], eax
mov dword [esp + 8], esi
mov dword [esp + 0x70], edi
movq qword [esp + 0x68], xmm0
je 0x1016fa1b
lea eax, [edx - 4]
xor ebx, ebx
mov dword [esp + 4], 0
mov dword [esp + 0x180], eax
mov dword [esp], eax
mov esi, dword [edx - 4]
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
mov ecx, dword [esi]
test eax, eax
mov dword [esp + 0x4c], eax
setne byte [esp + 0x40]
test edi, edi
setne byte [esp + 0x34]
or ecx, dword [esi + 4]
je 0x1016f856
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
xor eax, 0x2f
or eax, dword [ecx + 4]
jne 0x1016faee
movzx eax, byte [esp + 0x40]
movzx edx, byte [esp + 0x34]
mov bl, al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], eax
xor eax, eax
mov al, dl
mov edx, dword [esp + 4]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], edi
mov dword [esp + 0x160], edx
mov dword [esp + 0x164], ecx
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1016fab8
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x70]
movq xmm0, qword [esp + 0x68]
mov dword [esp + 0xc8], eax
movq qword [esp + 0xc0], xmm0
mov dword [esp + 0x2c0], eax
movq qword [esp + 0x2b8], xmm0
jmp 0x1016f9a4
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x154]
mov esi, dword [esp + 0x158]
mov edi, dword [esp + 0x15c]
cmp ebx, 2
mov ecx, 0
mov dword [esp + 0x154], 2
cmovae edx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 8], edi
jb 0x1016f93c
mov esi, dword [esp + 0x30]
test esi, esi
je 0x1016f93c
push dword [esp + 0x24]
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
mov edx, esi
mov dword [esp + 0x150], 3
lea ecx, [esp + 0x15c]
mov dword [esp + 0xc], edx
mov ebx, 3
movsd xmm0, qword [ecx + 4]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0xc]
movsd qword [esp + 0xc0], xmm0
movq xmm0, qword [ecx + 4]
mov dword [esp + 0xc8], eax
mov dword [esp + 0x2c0], edx
movq qword [esp + 0x2b8], xmm0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
call fcn.10184670
add esp, 4
mov ecx, dword [esp + 4]
mov edi, eax
mov esi, edx
mov dword [esp], ecx
mov eax, dword [esp + 0x2c0]
lea ecx, [esp + 0x3dc]
movq xmm0, qword [esp + 0x2b8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
movq qword [ecx], xmm0
mov dword [esp + 0x3d0], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x3d8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3d4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3e8], eax
mov dword [esp + 0x3ec], edi
mov dword [esp + 0x3f0], esi
lea ecx, [esp + 0x2a0]
lea edx, [esp + 0x3d0]
call fcn.10170880
mov edx, dword [esp]
xor ecx, ecx
mov edi, ebx
jmp 0x1016f7a0
mov eax, dword [esp + 0x48]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x1016fb70
mov ecx, dword [esp + 0xb0]
mov esi, dword [eax + 0x18]
movzx edx, word [ecx + 0x148]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
test ecx, ecx
je 0x1016fa59
push eax
push 0
push dword [0x1048f0f8]
mov ebx, edx
call sub.KERNEL32.dll_HeapFree
mov edx, ebx
mov dword [esp + 0x150], 3
lea ecx, [esp + 0x15c]
cmp dx, 2
movsd xmm0, qword [ecx]
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 8]
movsd qword [esp + 0xc0], xmm0
movq xmm0, qword [ecx]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c0], ebx
mov ebx, 3
mov dword [esp + 0xc8], eax
movq qword [esp + 0x2b8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], ecx
je 0x1016f987
jmp 0x1016f9a4
mov eax, dword [esp + 0x70]
movq xmm0, qword [esp + 0x68]
mov ecx, dword [esp]
mov dword [esp + 0xc8], eax
movq qword [esp + 0xc0], xmm0
mov dword [esp + 0x2c0], eax
movq qword [esp + 0x2b8], xmm0
mov dword [esp + 4], ecx
jmp 0x1016f987
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 8]
mov ecx, dword [ecx]
mov dword [esp + 0xb4], eax
cmp ecx, 2
jne 0x1016fb9b
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x3d0]
call fcn.1015b240
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x2b8]
push dword [esp + 0x100]
lea eax, [esp + 0x3d4]
push eax
call fcn.1015fdf0
add esp, 8
mov eax, dword [esp + 0x44]
cmp dword [eax], 2
jne 0x1016fb89
movsd xmm0, qword [esp + 0x2b8]
movq xmm1, qword [esp + 0x2c0]
movsd qword [eax], xmm0
movq xmm0, qword [esp + 0x2c8]
movq qword [eax + 8], xmm1
movq qword [eax + 0x10], xmm0
jmp 0x1016fb99
mov dx, 2
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
test ecx, ecx
jne 0x1016fa47
jmp 0x1016fa59
lea ecx, [esp + 0x2b8]
call fcn.1014a4d0
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov eax, dword [esp + 0x108]
test ecx, ecx
mov edx, 1
cmovne ecx, edx
cmove eax, dword [esp + 0x104]
test ecx, ecx
je 0x1016fbd4
cmp byte [eax], 0x4b
mov ecx, dword [esp + 0xb4]
jne 0x1017016d
mov eax, dword [eax + 4]
test eax, eax
jne 0x1016fbe3
jmp 0x1016f856
mov ecx, dword [esp + 0xb4]
test eax, eax
je 0x1016f856
cmp dword [eax + 4], ecx
mov edx, ecx
jbe 0x1016f856
mov eax, dword [eax]
lea ecx, [edx + edx*2]
mov edx, dword [eax + ecx*4]
mov ecx, dword [eax + ecx*4 + 8]
mov dword [esp + 4], edx
jmp 0x1016f856
cmp ebx, 2
jb 0x1016fc24
cmp dword [esp + 0x30], 0
je 0x1016fc24
push dword [esp + 0x24]
push 0
push dword [0x1048f0f8]
mov esi, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
test cl, 1
mov ecx, dword [esp + 0x38]
jne 0x10170053
jmp 0x101700a2
mov edi, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp ebx, eax
jbe 0x1016f59a
push 0x10438ed4
push eax
push ebx
call fcn.1002ac30
add esp, 0xc
ud2
movsd xmm0, qword [esp + 0x3f8]
mov eax, dword [esp + 0x3dc]
movq xmm1, qword [esp + 0x50]
movq xmm2, qword [esp + 0x58]
movsd qword [esp + 0xa0], xmm0
movsd xmm0, qword [esp + 0x3f0]
mov dword [esp + 0xd8], eax
movsd qword [esp + 0x98], xmm0
movsd xmm0, qword [esp + 0x3e8]
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [esp + 0x3e0]
movsd qword [esp + 0x88], xmm0
movsd xmm0, qword [esp + 0x3d4]
movq qword [esp + 0x70], xmm2
movq qword [esp + 0x68], xmm1
movsd qword [esp + 0xd0], xmm0
movsd qword [esp + 0x78], xmm0
movq qword [esp + 0xc0], xmm1
movq qword [esp + 0xc8], xmm2
movsd xmm0, qword [esp + 0xd8]
movsd qword [esp + 0x80], xmm0
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x414], esi
movd xmm0, eax
pshufd xmm0, xmm0, 0x44
movdqu xmmword [esp + 0x3d0], xmm0
mov dword [esp + 0x3e4], edx
mov dword [esp + 0x3e0], ecx
mov dword [esp + 0x3e8], esi
mov dword [esp + 0x3f0], edi
mov dword [esp + 0x3f4], ebx
mov dword [esp + 0x3fc], edx
mov dword [esp + 0x3f8], ecx
mov dword [esp + 0x400], eax
mov dword [esp + 0x404], 0
mov byte [esp + 0x408], 0
lea eax, [esp + 0x3d0]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x68]
push eax
call fcn.1015f790
add esp, 4
cmp byte [esp + 0x1c8], 2
je 0x1016fff2
nop word cs:[eax + eax]
nop
mov eax, dword [esp + 0x188]
mov ecx, 0x13
lea edi, [esp + 0x2b8]
lea esi, [esp + 0x18c]
mov ebx, dword [esp + 0x180]
mov dword [esp], eax
lea eax, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
movsd xmm0, qword [esp + 0x168]
movsd xmm1, qword [esp + 0x158]
movsd qword [esp + 0x3e8], xmm0
movsd xmm0, qword [esp + 0x160]
movsd qword [esp + 0x3d8], xmm1
movq xmm1, qword [eax + 8]
movsd qword [esp + 0x3e0], xmm0
movsd xmm0, qword [esp + 0x150]
movq qword [esp + 0x298], xmm1
movsd qword [esp + 0x3d0], xmm0
movq xmm0, qword [eax]
mov eax, dword [esp + 0x3e8]
movq qword [esp + 0x290], xmm0
lock dec dword [eax]
jne 0x1016fe58
lea ecx, [esp + 0x3e8]
call fcn.1014f660
movzx eax, byte [ebx + 0x138]
cmp eax, 0x4b
je 0x1016fe80
cmp eax, 0x4c
jne 0x1016fec0
mov byte [ebx + 0x138], 0x4b
mov dword [ebx + 0x13c], 0
jmp 0x1016fea0
mov esi, dword [ebx + 0x13c]
test esi, esi
je 0x1016fea0
mov ecx, dword [esi]
add esi, 8
mov dl, 2
mov al, 0x4b
mov ebx, esi
mov dword [esp], edx
add ecx, 8
jmp 0x1016ff0a
mov eax, dword [esp]
mov dword [esp], 0
mov ecx, dword [eax]
mov al, 0x4b
add ecx, 8
jmp 0x1016ff0a
movzx ecx, byte [ebx + 0x13b]
mov byte [esp + 0x6a], cl
movzx ecx, word [ebx + 0x139]
mov word [esp + 0x68], cx
movzx edx, byte [ebx + 0x140]
mov ecx, dword [ebx + 0x13c]
mov dword [esp], edx
movzx edx, byte [ebx + 0x143]
mov byte [esp + 0xc2], dl
movzx edx, word [ebx + 0x141]
mov word [esp + 0xc0], dx
mov ebx, dword [ebx + 0x144]
movzx edx, byte [esp + 0x6a]
lea esi, [esp + 0x3e8]
movq xmm1, qword [esp + 0x298]
movq xmm0, qword [esp + 0x290]
mov byte [esi - 0x15], dl
movzx edx, word [esp + 0x68]
movq qword [esp + 0x70], xmm1
movq qword [esp + 0x68], xmm0
mov word [esi - 0x17], dx
movzx edx, word [esp + 0xc0]
mov word [esi - 0xf], dx
movzx edx, byte [esp + 0xc2]
mov byte [esi - 0xd], dl
mov byte [esp + 0x3d0], al
mov eax, dword [esp]
mov dword [esp + 0x3d4], ecx
mov byte [esp + 0x3d8], al
mov dword [esp + 0x3dc], ebx
lea edx, [esp + 0x68]
lea eax, [esp + 0x3d0]
lea ecx, [esp + 0xd0]
push eax
call fcn.1015c3b0
add esp, 4
lea eax, [esp + 0x68]
mov dword [esp + 0xcc], 0
mov ecx, 0x12
lea esi, [esp + 0x2bc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x3d0]
push eax
call fcn.1015f790
add esp, 4
push 0x88
lea eax, [esp + 0x3d4]
push eax
lea eax, [esp + 0x158]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x1c8], 2
jne 0x1016fdb0
movsd xmm1, qword [esp + 0x160]
movq xmm0, qword [esp + 0x158]
movq xmm2, qword [esp + 0x168]
mov edi, dword [esp + 0x154]
cmp dword [esp + 0x150], 0
movsd qword [esp + 0x120], xmm1
movq xmm1, qword [esp + 0x170]
movq qword [esp + 0x118], xmm0
movq qword [esp + 0x128], xmm2
movq qword [esp + 0x130], xmm1
je 0x10170148
mov ecx, dword [esp + 0x38]
add ecx, 0xc8
mov edx, dword [esp + 0x10]
push 0
call fcn.10184670
add esp, 4
test eax, eax
je 0x101700a2
mov esi, dword [esp + 0x10]
mov dword [esp + 0x3d0], 3
mov dword [esp + 0x3d4], eax
mov dword [esp + 0x3d8], edx
mov dword [esp + 0x3dc], esi
lea ecx, [esp + 0x2a0]
lea edx, [esp + 0x3d0]
call fcn.10170880
cmp byte [esp + 0x23], 0
mov esi, dword [esp + 0x114]
jne 0x1017012e
mov eax, dword [esp + 0x110]
cmp byte [eax], 0
je 0x1017012e
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x3d0], 3
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], 0
sub esp, 0x20
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x3f0]
lea ecx, [esp + 0x170]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.101731b0
add esp, 0x20
mov ecx, dword [esp + 0xbc]
mov byte [ecx], al
mov eax, dword [esp + 0x150]
inc dword [eax + 0xc]
mov eax, dword [esi + 4]
inc dword [eax]
mov eax, dword [esp + 0xbc]
cmp byte [eax], 0
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x17c]
mov ebx, dword [esp + 0x184]
mov edx, dword [esp + 0x180]
mov esi, dword [esp + 0x38]
jmp 0x1016f6c0
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x3c]
jne 0x1016fc0f
jmp 0x1016fc24
test eax, eax
jne 0x1016f412
mov esi, ebx
sub esi, edx
jb 0x1016f412
cmp dword [esp + 4], esi
ja 0x1016f412
mov esi, dword [edi + ecx + 0x74]
cmp esi, 0x1fffffff
ja 0x1016f412
shl esi, 3
cmp esi, dword [esp + 4]
ja 0x1016f412
mov esi, eax
movzx eax, byte [esp + 8]
mov dword [esp + 0xc], edx
xor edx, edx
mov dl, al
mov eax, edx
mov edx, dword [esp + 0xc]
add dword [esp + 4], edx
adc esi, eax
jne 0x1016f412
mov eax, ebx
sub eax, dword [esp + 4]
jb 0x1016f412
movzx edx, word [edi + ecx + 6]
mov dword [esp + 8], edx
lea edx, [edx*8]
lea edx, [edx + edx*4]
cmp edx, eax
ja 0x1016f412
mov eax, edi
mov eax, dword [edi + ecx + 0xc]
add dword [esp + 4], edi
test eax, eax
mov dword [esp + 0xc], eax
je 0x1017030b
mov eax, dword [edi + ecx + 0x10]
mov edx, 0x12
mov dword [esp + 0x28], eax
mul edx
jo 0x1016f412
mov edx, ebx
sub edx, dword [esp + 0xc]
jb 0x1016f412
cmp eax, edx
ja 0x1016f412
mov edx, dword [esp + 0xc]
mov esi, eax
add eax, edx
mov dword [esp + 0x14], eax
mov eax, ebx
sub eax, dword [esp + 0x14]
setb byte [esp + 0x14]
add esi, edx
setb dl
mov dword [esp + 0x34], esi
jb 0x1016f412
cmp byte [esp + 0x14], 0
jne 0x1016f412
cmp eax, 4
jb 0x1016f412
mov dword [esp + 0x14], edi
xor eax, eax
mov al, dl
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov esi, dword [esi + edx]
add esi, edx
adc eax, 0
cmp dword [esp + 0x28], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx + 0x34]
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x48], eax
je 0x10170679
add dword [esp + 0xc], edi
xor edx, edx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x14], 0
jmp 0x101705c5
push 0x1043b598
push edi
push edx
call fcn.100273d0
add esp, 0xc
ud2
push 0x10438ee4
push ecx
push eax
call fcn.100273d0
add esp, 0xc
ud2
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], 0
mov esi, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], 0
xor edx, edx
mov eax, 0x20
test edx, edx
mov ecx, 0x20
je 0x10170366
bsr ecx, edx
xor ecx, 0x1f
sub eax, ecx
mov ecx, esi
push eax
push 0
call fcn.1014b7d0
add esp, 8
mov eax, dword [esp + 0x70]
movq xmm0, qword [esp + 0x68]
mov dword [esp + 0xc0], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x148], eax
mov eax, dword [esp + 4]
movq qword [esp + 0x140], xmm0
mov dword [esp + 0x118], edi
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x68]
lea edx, [esp + 0x118]
lea esi, [esp + 0xc0]
lea ecx, [esp + 0x2b8]
push eax
push esi
call fcn.1017fb40
add esp, 8
movzx eax, byte [esp + 0x2b8]
cmp al, 0x17
mov byte [esp + 8], al
je 0x1016f412
lea eax, [esp + 0x2b9]
lea esi, [esp + 0x3d0]
push 0x117
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0x58]
movq xmm0, qword [esp + 0x50]
lea eax, [esp + 0x151]
movsd qword [esp + 0x4ef], xmm1
movq xmm1, qword [esp + 0x60]
movq qword [esp + 0x4e7], xmm0
movq qword [esp + 0x4f7], xmm1
push 0x12f
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
movzx eax, byte [esp + 8]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x150], al
mov dword [esp + 0x280], ecx
mov dword [esp + 0x284], edi
mov edi, dword [0x1048f13c]
mov dword [esp + 0x288], ebx
cmp edi, 4
jne 0x1017050a
mov dword [0x1048f13c], 3
mov eax, 0x3d8
add eax, dword [0x1048f134]
push 0x148
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x3d8], 0x17
je 0x10170505
lea ecx, [esp + 0x3d8]
call fcn.1014a090
mov edi, 3
lea eax, [esp + 0x3d8]
lea ecx, [esp + 0x150]
push 0x140
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x1c]
cmp edi, dword [0x1048f138]
mov dword [esp + 0x3d0], eax
jne 0x10170541
mov ecx, edi
call fcn.101505c0
mov ebx, dword [0x1048f134]
test edi, edi
je 0x10170644
lea eax, [ebx + 0x148]
imul ecx, edi, 0x148
push ecx
push ebx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
push 0x148
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
inc edi
mov dword [0x1048f13c], edi
jne 0x1016f4d5
push 0x1043b5a8
push 0
push 0
call fcn.100273d0
add esp, 0xc
ud2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [eax + edx*8], esi
mov dword [eax + edx*8 + 4], ecx
inc edx
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
lea ecx, [ecx + eax + 1]
cmp ecx, dword [esp + 0x28]
mov eax, ecx
mov dword [esp + 0x14], ecx
jae 0x10170673
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xc]
movzx esi, byte [eax + ecx*2 + 0x11]
mov dword [esp + 0x4c], esi
movzx esi, word [eax + ecx*2 + 0xe]
and esi, 0x30
cmp si, 0x20
jne 0x101705a9
mov eax, dword [esp + 0xc]
movzx esi, word [eax + ecx*2 + 0xc]
test si, si
je 0x101705a9
movzx esi, si
dec esi
cmp esi, dword [esp + 8]
jae 0x1017069b
mov eax, dword [esp + 0xc]
lea eax, [eax + ecx*2]
lea ecx, [esi + esi*4]
mov esi, dword [eax + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 4]
add esi, dword [esp + 0x48]
add esi, dword [eax + ecx*8 + 0xc]
cmp edx, dword [esp + 0x6c]
jne 0x10170595
lea ecx, [esp + 0x68]
call fcn.1014f9c0
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
jmp 0x10170595
push 0x148
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [0x1048f13c], 1
jmp 0x1016f4d5
push 0x520
push 8
call fcn.1001ac80
add esp, 8
ud2
mov esi, dword [esp + 0x68]
jmp 0x10170680
mov esi, 4
xor edx, edx
mov dword [esp + 0xc], edi
mov eax, 0x20
test edx, edx
mov ecx, 0x20
jne 0x10170360
jmp 0x10170366
cmp dword [esp + 0x6c], 0
je 0x1016f412
push dword [esp + 0x68]
push 0
push dword [0x1048f0f8]
call sub.KERNEL32.dll_HeapFree
jmp 0x1016f412
push 8
push 4
call fcn.1001ac80
add esp, 8
ud2