Function at 0x48fae0
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, 0x8f8
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], edx
lea edi, [eax - 1]
test eax, eax
cmove edi, eax
cmp dword [0x572150], 0x80000000
mov dword [esp + 8], edi
jne 0x48ff47
movzx eax, byte [0x597110]
mov eax, dword [0x5970d8]
test eax, eax
jne 0x48fb34
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x491416
mov dword [0x5970d8], eax
push 0x520
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x491416
mov dword [esp + 0x248], 0
mov dword [esp + 0x24c], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x250], 0
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x48fe2e
mov esi, eax
lea eax, [esp + 0x4cc]
push 0x424
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x4c8], 0x428
lea eax, [esp + 0x4c8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
cmp eax, 1
jne 0x48fe28
xor edi, edi
mov dword [esp + 4], 4
mov dword [esp + 0x18], esi
jmp 0x48fbe7
mov esi, dword [esp + 0x18]
nop
lea eax, [esp + 0x4c8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
cmp eax, 1
jne 0x48fe28
mov ecx, 0x208
xor eax, eax
nop
cmp word [esp + eax*2 + 0x6e8], 0
je 0x48fc06
inc eax
add ecx, 0xfffffffe
jne 0x48fbf0
mov eax, 0x104
lea edx, [esp + 0x6e8]
lea ecx, [esp + 0x350]
push eax
call fcn.0048e540
add esp, 4
mov ebx, dword [esp + 0x354]
mov edx, ebx
lea ecx, [esp + 0x100]
push dword [esp + 0x358]
call fcn.00491740
add esp, 4
cmp dword [esp + 0x100], 0
je 0x48fcc3
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x104]
mov esi, dword [esp + 0x108]
cmp ecx, 0x40
mov dword [esp + 0xc], eax
jb 0x48fcb0
test esi, esi
je 0x48fcb0
movzx eax, word [esi]
cmp eax, 0x5a4d
jne 0x48fcb0
mov eax, dword [esi + 0x3c]
mov edx, ecx
sub edx, eax
jb 0x48fcb0
cmp edx, 0x78
jb 0x48fcb0
cmp dword [esi + eax], 0x4550
jne 0x48fcb0
movzx edx, word [esi + eax + 0x18]
cmp edx, 0x10b
jne 0x48fcb0
movzx edx, word [esi + eax + 0x14]
cmp dx, 0x60
jb 0x48fcb0
cmp eax, 0xffffff87
jbe 0x48fce4
nop word cs:[eax + eax]
push esi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [esp + 0xc]
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x350], 0
je 0x48fbd0
push ebx
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x48fbd0
movzx edx, dx
add edx, 0xffffffa0
mov dword [esp + 0x10], edx
mov edx, 0
adc edx, 0xffffffff
jne 0x48fcb0
lea edx, [eax + 0x78]
sub ecx, edx
jb 0x48fcb0
cmp dword [esp + 0x10], ecx
ja 0x48fcb0
mov ecx, dword [esi + eax + 0x74]
cmp ecx, 0x1fffffff
ja 0x48fcb0
shl ecx, 3
cmp ecx, dword [esp + 0x10]
ja 0x48fcb0
mov eax, dword [esi + eax + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4dc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x350]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x358]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x35c]
mov dword [esp + 0x28], eax
movzx eax, byte [0x597110]
mov ecx, 8
mov edx, 4
call fcn.00429bd0
test eax, eax
je 0x491481
mov ecx, dword [esp + 0x4e0]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [eax], edx
mov dword [eax + 4], ecx
push esi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [esp + 0xc]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 0x10]
cmp eax, 0x80000000
je 0x48fbcb
cmp edi, dword [esp + 0x248]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 4]
jne 0x48fdcb
lea ecx, [esp + 0x248]
mov edx, edi
call fcn.00491a00
mov ecx, dword [esp + 0x24c]
mov edi, dword [esp + 0x250]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov dword [esp + 4], ecx
sub eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, edi
inc edi
shl eax, 5
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + eax + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + eax + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax + 0x10], 1
mov dword [ecx + eax + 0x14], edx
mov dword [ecx + eax + 0x18], 1
mov dword [ecx + eax + 0x1c], ebx
mov dword [esp + 0x250], edi
jmp 0x48fbd0
push esi
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [0x572150]
mov eax, dword [esp + 0x250]
movsd xmm0, qword [esp + 0x248]
cmp esi, 0x80000000
mov dword [esp + 0x4d0], eax
movsd qword [esp + 0x4c8], xmm0
je 0x48ff0c
mov ebx, dword [0x572158]
mov eax, dword [0x572154]
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x48feb3
mov eax, dword [esp + 0xc]
lea edi, [eax + 0x14]
jmp 0x48fe86
add edi, 0x20
dec ebx
je 0x48feb3
cmp dword [edi - 0x14], 0
je 0x48fe9c
push dword [edi - 0x10]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp dword [edi - 4], 0
je 0x48fe80
push dword [edi]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x48fe80
test esi, esi
je 0x48fec8
push dword [esp + 0xc]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [0x572164]
mov esi, dword [0x572160]
lea ecx, [esi + 8]
inc ebx
nop dword [eax + eax]
cmp ebx, 1
je 0x48fef5
lea edi, [ecx + 0x148]
dec ebx
call fcn.00491aa0
mov ecx, edi
jmp 0x48fee0
cmp dword [0x57215c], 0
je 0x48ff0c
push esi
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0x4d0]
movq xmm0, qword [esp + 0x4c8]
mov ecx, dword [esp + 0x14]
mov dword [0x572158], eax
movq qword [0x572150], xmm0
mov dword [0x57215c], 4
mov dword [0x572160], ecx
mov dword [0x572164], 0
mov ecx, dword [0x572158]
test ecx, ecx
je 0x490e36
mov ebx, dword [0x572154]
mov edx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
shl edx, 5
add edx, ebx
mov dword [esp + 4], ebx
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x14]
add ebx, 0x20
mov dword [esp + 0x18], eax
shl esi, 3
mov dword [esp + 0xc], ecx
nop word cs:[eax + eax]
nop dword [eax]
test esi, esi
je 0x48ffc0
mov eax, edi
add esi, 0xfffffff8
add edi, 8
mov ecx, dword [eax]
add ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 8]
ja 0x48ff90
add ecx, dword [eax + 4]
cmp ecx, dword [esp + 8]
jbe 0x48ff90
jmp 0x48ffce
mov eax, dword [esp + 0x18]
inc eax
cmp ebx, edx
jne 0x48ff6c
jmp 0x490e36
mov edi, dword [0x572164]
mov ecx, dword [esp + 0x18]
test edi, edi
je 0x490004
mov esi, dword [0x572160]
imul eax, edi, 0x148
xor edx, edx
xor ebx, ebx
nop dword [eax]
cmp dword [esi + edx], ecx
je 0x490110
add edx, 0x148
inc ebx
cmp eax, edx
jne 0x48fff0
mov edx, dword [esp + 0x14]
cmp edx, ecx
jbe 0x490ff8
mov esi, dword [esp + 4]
mov eax, ecx
shl eax, 5
mov edx, dword [esi + eax + 4]
lea ecx, [esp + 0x4c8]
push dword [esi + eax + 8]
call fcn.00491740
add esp, 4
cmp dword [esp + 0x4c8], 0
je 0x490e36
mov ecx, dword [esp + 0x4d4]
mov ebx, dword [esp + 0x4d0]
mov edi, dword [esp + 0x4cc]
xor eax, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 4
mov dword [esp + 0x84], 0
cmp ecx, 0x40
mov dword [esp + 0x14], ecx
cmovae eax, ebx
jb 0x4900f6
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4900f6
mov ecx, dword [eax + 0x3c]
mov eax, dword [esp + 0x14]
sub eax, ecx
jb 0x4900f6
cmp eax, 0x78
jb 0x4900f6
mov edx, ecx
add edx, 0x78
setb byte [esp + 4]
cmp dword [ebx + ecx], 0x4550
jne 0x4900f6
movzx esi, word [ebx + ecx + 0x18]
cmp esi, 0x10b
jne 0x4900f6
movzx esi, word [ebx + ecx + 0x14]
mov eax, esi
add eax, 0xffffffa0
mov dword [esp + 0x10], eax
mov eax, 0
adc eax, 0xffffffff
cmp esi, 0x60
jb 0x4900f6
cmp ecx, 0xffffff87
jbe 0x490e81
lea ecx, [esp + 0x70]
call fcn.00496840
push ebx
call sub.KERNEL32.dll_UnmapViewOfFile
push edi
call sub.KERNEL32.dll_CloseHandle
jmp 0x490e36
test ebx, ebx
je 0x4901bc
mov dword [esp + 0x18], edi
imul edi, ebx, 0x148
lea ecx, [esi + edi]
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x100]
push 0x148
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esi + edi + 0x148]
mov edi, dword [esp + 0x18]
not ebx
add ebx, edi
imul ecx, ebx, 0x148
push ecx
push eax
push dword [esp + 0x1c]
call sub.msvcrt.dll_memmove
add esp, 0xc
lea ebx, [edi - 1]
mov edi, dword [esp + 8]
mov dword [0x572164], ebx
cmp ebx, dword [0x57215c]
jne 0x490184
mov ecx, ebx
call fcn.004968f0
mov esi, dword [0x572160]
lea eax, [esi + 0x148]
imul ecx, ebx, 0x148
push ecx
push esi
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
push 0x148
lea eax, [esp + 0x104]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [0x572164], eax
jmp 0x4901c0
mov edi, dword [esp + 8]
sub edi, dword [esp + 0xc]
mov eax, dword [esi + 0x104]
mov dword [esp + 0x34], esi
mov esi, dword [esi + 0x108]
xor ebx, ebx
mov dword [esp + 8], edi
inc edi
mov dword [esp + 4], eax
mov dword [esp + 0x24], esi
sete bl
test esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
je 0x490258
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov eax, esi
jmp 0x49020a
mov ebx, dword [esp + 0xc]
mov eax, esi
sub eax, ecx
jbe 0x49025f
shr eax, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
add eax, ecx
mov ecx, dword [esp + 4]
mov esi, eax
shl esi, 5
mov edx, dword [ecx + esi]
mov ecx, dword [ecx + esi + 4]
mov esi, ecx
xor esi, ebx
mov ebx, edx
xor ebx, edi
or ebx, esi
je 0x49025c
mov ebx, dword [esp + 0xc]
cmp edi, edx
mov esi, eax
sbb ebx, ecx
jb 0x490242
mov esi, dword [esp + 0x14]
cmp dword [esp + 8], edx
mov edx, 0
sbb edx, ecx
mov ecx, dword [esp + 0x18]
jb 0x490200
inc eax
mov ecx, eax
jmp 0x490200
xor ecx, ecx
jmp 0x49025f
inc eax
mov ecx, eax
mov edx, dword [esp + 0x24]
cmp ecx, edx
ja 0x491477
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x34]
mov ebx, 3
test ecx, ecx
je 0x49036c
lea eax, [esi + 0x100]
shl ecx, 5
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
lea esi, [ecx + eax - 0x20]
neg ecx
xor eax, eax
jmp 0x4902ac
add esi, 0xffffffe0
add ecx, 0x20
je 0x4906ef
cmp edi, dword [esi + 0x10]
mov edx, 0
sbb edx, dword [esi + 0x14]
jae 0x4906ef
cmp edi, dword [esi + 8]
mov edx, 0
sbb edx, dword [esi + 0xc]
jae 0x4902a0
cmp edi, dword [esi]
mov edx, 0
sbb edx, dword [esi + 4]
jb 0x4902a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x18]
mov edx, dword [eax + 0x110]
cmp ecx, edx
jae 0x491002
imul ebx, ecx, 0x150
add ebx, dword [eax + 0x10c]
lea ecx, [esp + 0x4c8]
mov edx, ebx
push dword [esp + 0x18]
call fcn.004969a0
add esp, 4
cmp dword [esp + 0x4c8], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x250], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x248], edi
mov dword [esp + 0x24c], 0
mov dword [esp + 0x254], eax
je 0x49037e
lea eax, [esp + 0x4d0]
lea ecx, [esp + 0x360]
lea edx, [esp + 0x248]
push eax
call fcn.00496e00
add esp, 4
mov dword [esp + 0x35c], 0
jmp 0x490437
xor eax, eax
add esi, 8
test eax, eax
jne 0x490dee
jmp 0x4906fe
movsd xmm0, qword [esp + 0x4f0]
mov eax, dword [esp + 0x4d4]
movsd xmm1, qword [esp + 0x248]
movsd xmm2, qword [esp + 0x250]
movsd qword [esp + 0x388], xmm0
movsd xmm0, qword [esp + 0x4e8]
mov dword [esp + 0x118], eax
movsd qword [esp + 0x380], xmm0
movsd xmm0, qword [esp + 0x4e0]
movsd qword [esp + 0x378], xmm0
movsd xmm0, qword [esp + 0x4d8]
movsd qword [esp + 0x370], xmm0
movsd xmm0, qword [esp + 0x4cc]
movsd qword [esp + 0x358], xmm2
movsd qword [esp + 0x350], xmm1
movsd qword [esp + 0x110], xmm0
movsd qword [esp + 0x360], xmm0
movsd qword [esp + 0x100], xmm1
movsd qword [esp + 0x108], xmm2
movq xmm0, qword [esp + 0x118]
movq qword [esp + 0x368], xmm0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 4]
movd xmm0, edi
pshufd xmm0, xmm0, 0x44
movdqu xmmword [esp + 0x4c8], xmm0
mov dword [esp + 0x4dc], ecx
mov dword [esp + 0x4d8], eax
mov dword [esp + 0x4e0], ebx
mov dword [esp + 0x4e8], edx
mov dword [esp + 0x4ec], esi
mov dword [esp + 0x4f0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4f4], ecx
mov dword [esp + 0x4f8], edi
mov dword [esp + 0x4fc], 0
mov byte [esp + 0x500], 0
mov dword [esp + 0x508], eax
mov dword [esp + 0x50c], ebx
lea eax, [esp + 0x4c8]
lea ecx, [esp + 0x100]
lea edx, [esp + 0x350]
push eax
call fcn.0049a150
add esp, 4
cmp byte [esp + 0x178], 2
je 0x4906e1
nop word cs:[eax + eax]
nop dword [eax]
movsd xmm1, qword [esp + 0x110]
movq xmm0, qword [esp + 0x118]
movsd xmm2, qword [esp + 0x100]
mov ecx, 0x1a
lea edi, [esp + 0x350]
lea esi, [esp + 0x120]
movsd qword [esp + 0x4d8], xmm1
movsd xmm1, qword [esp + 0x108]
movq qword [esp + 0x4e0], xmm0
movsd qword [esp + 0x4c8], xmm2
movsd qword [esp + 0x4d0], xmm1
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x4e0]
lock dec dword [eax]
jne 0x490565
lea ecx, [esp + 0x4e0]
call fcn.0049a7e0
mov eax, dword [esp + 0x360]
mov edx, dword [esp + 0x368]
movzx ecx, byte [eax + 0x138]
cmp ecx, 0x4b
je 0x490597
cmp ecx, 0x4c
jne 0x4905c6
mov byte [eax + 0x138], 0x4b
mov dword [eax + 0x13c], 0
jmp 0x4905b5
mov esi, dword [eax + 0x13c]
test esi, esi
je 0x4905b5
mov edx, dword [esi]
mov al, 2
add esi, 8
mov cl, 0x4b
mov dword [esp + 0xc], eax
mov eax, esi
add edx, 8
jmp 0x490616
mov edx, dword [edx]
mov cl, 0x4b
mov dword [esp + 0xc], 0
add edx, 8
jmp 0x490616
movzx edx, byte [eax + 0x13b]
mov byte [esp + 0x24a], dl
movzx edx, word [eax + 0x139]
mov word [esp + 0x248], dx
movzx ebx, byte [eax + 0x140]
mov edx, dword [eax + 0x13c]
mov dword [esp + 0xc], ebx
mov bh, byte [eax + 0x143]
mov byte [esp + 0x492], bh
movzx esi, word [eax + 0x141]
mov word [esp + 0x490], si
mov eax, dword [eax + 0x144]
movzx ebx, byte [esp + 0x24a]
movzx esi, word [esp + 0x248]
lea edi, [esp + 0x4e0]
mov byte [edi - 0x15], bl
mov word [edi - 0x17], si
movzx ebx, byte [esp + 0x492]
movzx esi, word [esp + 0x490]
mov word [edi - 0xf], si
mov byte [edi - 0xd], bl
mov byte [esp + 0x4c8], cl
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4cc], edx
mov byte [esp + 0x4d0], cl
mov dword [esp + 0x4d4], eax
lea edx, [esp + 0x350]
lea ebx, [esp + 0x4c8]
lea ecx, [esp + 0x98]
push ebx
call fcn.00496e00
add esp, 4
lea eax, [esp + 0x248]
mov dword [esp + 0x94], 0
mov ecx, 0x12
lea esi, [esp + 0x370]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x88]
mov ecx, ebx
push eax
call fcn.0049a150
add esp, 4
push 0x88
push ebx
lea eax, [esp + 0x108]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [esp + 0x178], 2
jne 0x4904f0
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0x104]
mov esi, dword [esp + 0x34]
add esi, 8
test eax, eax
jne 0x490dee
mov eax, dword [esp + 0x128]
mov ecx, 2
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x44], eax
lea eax, [ebx - 3]
cmp eax, 2
cmovb ecx, eax
test ecx, ecx
je 0x490834
mov edx, dword [esp + 0x108]
cmp ecx, 1
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x110]
lea edi, [ecx + 0x110]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x114]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x120]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x124]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x130]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x134]
mov dword [esp + 0x38], edx
lea edx, [ecx + 0x10]
mov dword [esp + 0x54], edx
lea edx, [ecx + 0x108]
lea ecx, [ecx + 0x10c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], ecx
jne 0x49083b
cmp eax, 2
jb 0x4907e3
cmp dword [esp + 0x44], 0
je 0x4907e3
push dword [esp + 0x4c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 3
mov dword [esp + 0x20], 2
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x34]
push 0
call fcn.0049d660
add esp, 4
mov ebx, eax
jmp 0x490a1f
xor ebx, ebx
jmp 0x490dcd
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x48]
je 0x490915
mov esi, dword [eax - 4]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi]
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], edx
setne bl
test edx, edx
setne bh
or ecx, dword [esi + 4]
je 0x4909d8
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
xor eax, 0x2f
or eax, dword [ecx + 4]
je 0x4909d8
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
cmp eax, 2
jne 0x49098d
mov edx, dword [esp + 0x54]
lea edi, [esp + 0x4c8]
mov ecx, edi
call fcn.0049a850
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x100]
push dword [esp + 0x5c]
push edi
call fcn.0049ac20
add esp, 8
mov edi, dword [esp + 0x50]
cmp dword [edi], 2
jne 0x49097f
movsd xmm0, qword [esp + 0x100]
movsd xmm1, qword [esp + 0x108]
movsd qword [edi], xmm0
movq xmm0, qword [esp + 0x110]
movsd qword [edi + 8], xmm1
movq qword [edi + 0x10], xmm0
jmp 0x49098b
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x490930
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + 0x18]
movzx esi, word [ecx + 0x148]
jmp 0x490934
mov si, 2
cmp dword [esp + 0x44], 0
je 0x490950
push dword [esp + 0x4c]
push 0
push dword [0x5970d8]
mov edi, edx
call sub.KERNEL32.dll_HeapFree
mov edx, edi
cmp si, 2
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], ecx
je 0x49081b
jmp 0x490a1f
lea ecx, [esp + 0x100]
call fcn.0049d5c0
mov eax, dword [edi]
mov ecx, dword [esp + 0x64]
test eax, eax
mov edx, 1
cmovne eax, edx
cmove ecx, dword [esp + 0x60]
test eax, eax
je 0x4909b6
cmp byte [ecx], 0x4b
mov eax, dword [esp + 0xc]
jne 0x490e6b
mov ecx, dword [ecx + 4]
jmp 0x4909ba
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x4909d8
cmp dword [ecx + 4], eax
mov edx, eax
jbe 0x4909d8
mov eax, dword [ecx]
lea ecx, [edx + edx*2]
mov edx, dword [eax + ecx*4 + 4]
mov eax, dword [eax + ecx*4 + 8]
mov dword [esp + 0x24], edx
jmp 0x4909d8
xor ecx, ecx
mov cl, bl
add dword [esp + 0x38], 0xfffffffc
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov cl, bh
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x490e3e
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c8], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x4cc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4d0], eax
mov dword [esp + 0x4d4], esi
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 8]
mov dword [esp + 0x4d8], eax
mov dword [esp + 0x4dc], edi
mov dword [esp + 0x4e0], esi
mov dword [esp + 0x4e4], ebx
mov dword [esp + 0x4e8], edx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x4c8]
call fcn.004b1c00
mov eax, dword [esp + 0xc]
nop word cs:[eax + eax]
mov dword [esp + 0xc], eax
add eax, 0xfffffffd
cmp eax, 2
mov ecx, eax
jb 0x490aa3
mov ecx, 2
cmp ecx, 1
je 0x490b60
cmp ecx, 2
jne 0x490dc7
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x48]
je 0x490c3f
mov esi, dword [eax - 4]
mov dword [esp + 0x3c], 0
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi]
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], edx
setne bl
test edx, edx
setne bh
or ecx, dword [esi + 4]
je 0x490b0f
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
xor eax, 0x2f
or eax, dword [ecx + 4]
jne 0x490cd4
xor ecx, ecx
mov cl, bl
add dword [esp + 0x38], 0xfffffffc
mov dword [esp + 4], ecx
xor ecx, ecx
mov cl, bh
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x490ca7
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esi + 0x14]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x490bcf
cmp eax, 2
jb 0x490b7d
cmp dword [esp + 0x44], 0
je 0x490b7d
push dword [esp + 0x4c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov dword [esp + 4], 3
mov dword [esp + 0x20], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x34]
push 0
call fcn.0049d660
add esp, 4
mov ebx, eax
mov esi, edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4cc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4d0], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4d4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4d8], eax
mov dword [esp + 0x4dc], edi
mov edi, dword [esp + 8]
mov dword [esp + 0x4e0], edi
mov dword [esp + 0x4e4], ebx
mov dword [esp + 0x4e8], esi
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x4c8]
call fcn.004b1c00
mov eax, dword [esp + 4]
jmp 0x490a90
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x490d48
mov ecx, dword [esp + 0x40]
mov esi, dword [eax + 0x18]
movzx edi, word [ecx + 0x148]
cmp dword [esp + 0x44], 0
je 0x490c74
push dword [esp + 0x4c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp di, 2
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
je 0x490bb9
jmp 0x490bcf
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x490bb9
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
cmp eax, 2
jne 0x490d6a
mov edx, dword [esp + 0x54]
lea edi, [esp + 0x4c8]
mov ecx, edi
call fcn.0049a850
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x100]
push dword [esp + 0x5c]
push edi
call fcn.0049ac20
add esp, 8
mov edi, dword [esp + 0x50]
cmp dword [edi], 2
jne 0x490d5c
movsd xmm0, qword [esp + 0x100]
movsd xmm1, qword [esp + 0x108]
movsd qword [edi], xmm0
movq xmm0, qword [esp + 0x110]
movsd qword [edi + 8], xmm1
movq qword [edi + 0x10], xmm0
jmp 0x490d68
mov di, 2
cmp dword [esp + 0x44], 0
jne 0x490c63
jmp 0x490c74
lea ecx, [esp + 0x100]
call fcn.0049d5c0
mov eax, dword [edi]
mov ecx, dword [esp + 0x64]
test eax, eax
mov edx, 1
cmovne eax, edx
cmove ecx, dword [esp + 0x60]
test eax, eax
je 0x490d9a
cmp byte [ecx], 0x4b
mov eax, dword [esp + 4]
jne 0x490e67
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x490da6
jmp 0x490b0f
mov eax, dword [esp + 4]
test ecx, ecx
je 0x490b0f
cmp dword [ecx + 4], eax
mov edx, eax
jbe 0x490b0f
mov eax, dword [ecx]
lea ecx, [edx + edx*2]
mov edx, dword [eax + ecx*4 + 4]
mov eax, dword [eax + ecx*4 + 8]
mov dword [esp + 0x3c], edx
jmp 0x490b0f
mov esi, dword [esp + 0x34]
mov bl, 1
cmp eax, 2
jb 0x490dea
cmp dword [esp + 0x44], 0
je 0x490dea
push dword [esp + 0x4c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
test bl, bl
jne 0x490e36
mov edx, dword [esp + 8]
mov ecx, esi
push 0
call fcn.0049d660
add esp, 4
test eax, eax
je 0x490e36
mov esi, dword [esp + 8]
mov dword [esp + 0x4c8], 3
mov dword [esp + 0x4cc], eax
mov dword [esp + 0x4d0], edx
mov dword [esp + 0x4d4], esi
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x4c8]
call fcn.004b1c00
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
jmp 0x49081b
mov bl, 1
jmp 0x490e6d
xor ebx, ebx
cmp dword [esp + 0x44], 0
mov esi, dword [esp + 0x34]
jne 0x490dd9
jmp 0x490dea
test eax, eax
jne 0x4900f6
mov esi, dword [esp + 0x14]
sub esi, edx
jb 0x4900f6
cmp dword [esp + 0x10], esi
ja 0x4900f6
mov esi, dword [ebx + ecx + 0x74]
cmp esi, 0x1fffffff
ja 0x4900f6
shl esi, 3
cmp esi, dword [esp + 0x10]
ja 0x4900f6
mov esi, eax
movzx eax, byte [esp + 4]
mov dword [esp + 0x24], edx
xor edx, edx
mov dl, al
mov eax, edx
mov edx, dword [esp + 0x24]
add dword [esp + 0x10], edx
adc esi, eax
jne 0x4900f6
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
jb 0x4900f6
movzx edx, word [ebx + ecx + 6]
mov dword [esp + 0x24], edx
lea edx, [edx*8]
lea edx, [edx + edx*4]
cmp edx, eax
ja 0x4900f6
mov eax, dword [ebx + ecx + 0xc]
add dword [esp + 0x10], ebx
mov dword [esp + 0x20], edi
test eax, eax
mov dword [esp + 4], eax
je 0x49100c
mov eax, dword [ebx + ecx + 0x10]
mov edi, dword [esp + 0x20]
mov edx, 0x12
mov dword [esp + 0x28], eax
mul edx
jo 0x4900f6
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 4]
jb 0x4900f6
cmp eax, edx
ja 0x4900f6
mov edx, dword [esp + 4]
mov esi, eax
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
setb byte [esp + 0x30]
add esi, edx
mov dword [esp + 0x2c], esi
setb byte [esp + 0x1c]
jb 0x4900f6
cmp byte [esp + 0x30], 0
jne 0x4900f6
cmp eax, 4
jb 0x4900f6
movzx eax, byte [esp + 0x1c]
xor edx, edx
mov ecx, dword [ebx + ecx + 0x34]
mov dl, al
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov esi, dword [ebx + eax]
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 4
mov dword [esp + 0x90], 0
add esi, eax
adc edx, 0
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], edx
je 0x49142e
add dword [esp + 4], ebx
xor edx, edx
mov eax, 4
mov dword [esp + 0x30], 0
jmp 0x491378
push 0x583d34
call fcn.00469a50
push 0x5821a8
call fcn.00469a50
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 4
mov dword [esp + 0x90], 0
mov dword [esp + 0x34], 0
mov ecx, 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 4], 0
xor edx, edx
mov eax, 0x20
test edx, edx
mov esi, 0x20
je 0x491070
bsr esi, edx
xor esi, 0x1f
sub eax, esi
push eax
push 0
call fcn.00491b40
add esp, 8
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x20]
cmp eax, 0x80000000
je 0x4900f6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x4b8], 0x80000000
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 4]
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb0], 0x80000000
mov dword [esp + 0xf8], eax
lea eax, [esp + 0x88]
lea edx, [esp + 0xc8]
lea esi, [esp + 0x490]
lea ecx, [esp + 0x4c8]
push eax
push esi
call fcn.00492450
add esp, 8
mov eax, dword [esp + 0x4f0]
mov edi, dword [esp + 0x20]
cmp eax, 0x80000000
je 0x4900f6
movsd xmm2, qword [esp + 0x4e0]
movsd xmm1, qword [esp + 0x4d8]
movsd xmm0, qword [esp + 0x4e8]
mov esi, eax
lea eax, [esp + 0x4f4]
movsd qword [esp + 0x368], xmm2
movsd qword [esp + 0x360], xmm1
movsd xmm2, qword [esp + 0x4c8]
movsd xmm1, qword [esp + 0x4d0]
movsd qword [esp + 0x370], xmm0
movsd qword [esp + 0x358], xmm1
movsd qword [esp + 0x350], xmm2
lea ecx, [esp + 0x248]
push 0xec
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0x78]
movq xmm0, qword [esp + 0x70]
lea eax, [esp + 0x37c]
movsd qword [esp + 0x33c], xmm1
movsd xmm1, qword [esp + 0x80]
movq qword [esp + 0x334], xmm0
movsd qword [esp + 0x344], xmm1
push 0x104
lea ecx, [esp + 0x24c]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esp + 0x378], esi
mov dword [esp + 0x480], edi
mov dword [esp + 0x484], ebx
mov ebx, dword [0x572164]
mov eax, dword [esp + 0x14]
mov esi, dword [0x57215c]
cmp ebx, 4
mov dword [esp + 0x488], eax
jne 0x4912ae
mov dword [0x572164], 3
mov eax, 0x3d8
add eax, dword [0x572160]
push 0x148
push eax
lea eax, [esp + 0x4d0]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x4f8], 0x80000000
je 0x4912a9
lea ecx, [esp + 0x4d0]
call fcn.00491aa0
mov ebx, 3
lea edi, [esp + 0x4d0]
lea eax, [esp + 0x350]
push 0x140
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp ebx, esi
mov dword [esp + 0x4c8], eax
jne 0x4912e1
mov ecx, esi
call fcn.004968f0
mov esi, dword [0x572160]
test ebx, ebx
je 0x4913ed
lea eax, [esi + 0x148]
imul ecx, ebx, 0x148
push ecx
push esi
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
push 0x148
lea eax, [esp + 0x4cc]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edi, dword [esp + 8]
inc ebx
mov dword [0x572164], ebx
jne 0x4901c0
xor ecx, ecx
xor edx, edx
push 0x583d44
call fcn.00469a50
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x40]
mov dword [eax + edx*8], esi
mov dword [eax + edx*8 + 4], ecx
inc edx
mov dword [esp + 0x90], edx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
lea esi, [esi + ecx + 1]
cmp esi, dword [esp + 0x28]
mov ecx, esi
mov dword [esp + 0x30], esi
jae 0x491425
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 4]
lea ecx, [ecx + ecx*8]
movzx edi, byte [esi + ecx*2 + 0x11]
movzx esi, word [esi + ecx*2 + 0xc]
test esi, esi
mov dword [esp + 0x1c], edi
je 0x49135c
mov edi, dword [esp + 4]
movzx edi, word [edi + ecx*2 + 0xe]
and edi, 0x30
cmp di, 0x20
jne 0x49135c
dec esi
cmp esi, dword [esp + 0x24]
jae 0x491450
mov edi, dword [esp + 4]
lea edi, [edi + ecx*2]
lea ecx, [esi + esi*4]
mov esi, dword [edi + 8]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x10]
add esi, dword [esp + 0x3c]
add esi, dword [edi + ecx*8 + 0xc]
cmp edx, dword [esp + 0x88]
jne 0x491349
lea ecx, [esp + 0x88]
call fcn.004923b0
jmp 0x49133b
push 0x148
lea eax, [esp + 0x4cc]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edi, dword [esp + 8]
mov dword [0x572164], 1
jmp 0x4901c0
mov ecx, 8
mov edx, 0x520
call fcn.00429f40
mov ecx, dword [esp + 0x8c]
jmp 0x491435
mov ecx, 4
xor edx, edx
mov dword [esp + 4], ebx
mov eax, 0x20
test edx, edx
mov esi, 0x20
jne 0x49106a
jmp 0x491070
cmp dword [esp + 0x88], 0
je 0x49146e
push dword [esp + 0x8c]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esp + 0x20]
jmp 0x4900f6
push 0x582198
call fcn.0046a7e0
mov ecx, 4
mov edx, 8
call fcn.00429f40
ud2