Function at 0x48fed0
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 [0x56d150], 0x80000000
mov dword [esp + 8], edi
jne 0x490337
movzx eax, byte [0x592110]
mov eax, dword [0x5920d8]
test eax, eax
jne 0x48ff24
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x491806
mov dword [0x5920d8], eax
push 0x520
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x491806
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 0x49021e
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 0x490218
xor edi, edi
mov dword [esp + 4], 4
mov dword [esp + 0x18], esi
jmp 0x48ffd7
mov esi, dword [esp + 0x18]
nop
lea eax, [esp + 0x4c8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
cmp eax, 1
jne 0x490218
mov ecx, 0x208
xor eax, eax
nop
cmp word [esp + eax*2 + 0x6e8], 0
je 0x48fff6
inc eax
add ecx, 0xfffffffe
jne 0x48ffe0
mov eax, 0x104
lea edx, [esp + 0x6e8]
lea ecx, [esp + 0x350]
push eax
call fcn.0048e930
add esp, 4
mov ebx, dword [esp + 0x354]
mov edx, ebx
lea ecx, [esp + 0x100]
push dword [esp + 0x358]
call fcn.00491b30
add esp, 4
cmp dword [esp + 0x100], 0
je 0x4900b3
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x104]
mov esi, dword [esp + 0x108]
cmp ecx, 0x40
mov dword [esp + 0xc], eax
jb 0x4900a0
test esi, esi
je 0x4900a0
movzx eax, word [esi]
cmp eax, 0x5a4d
jne 0x4900a0
mov eax, dword [esi + 0x3c]
mov edx, ecx
sub edx, eax
jb 0x4900a0
cmp edx, 0x78
jb 0x4900a0
cmp dword [esi + eax], 0x4550
jne 0x4900a0
movzx edx, word [esi + eax + 0x18]
cmp edx, 0x10b
jne 0x4900a0
movzx edx, word [esi + eax + 0x14]
cmp dx, 0x60
jb 0x4900a0
cmp eax, 0xffffff87
jbe 0x4900d4
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 0x48ffc0
push ebx
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x48ffc0
movzx edx, dx
add edx, 0xffffffa0
mov dword [esp + 0x10], edx
mov edx, 0
adc edx, 0xffffffff
jne 0x4900a0
lea edx, [eax + 0x78]
sub ecx, edx
jb 0x4900a0
cmp dword [esp + 0x10], ecx
ja 0x4900a0
mov ecx, dword [esi + eax + 0x74]
cmp ecx, 0x1fffffff
ja 0x4900a0
shl ecx, 3
cmp ecx, dword [esp + 0x10]
ja 0x4900a0
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 [0x592110]
mov ecx, 8
mov edx, 4
call fcn.00429bf0
test eax, eax
je 0x491871
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 0x48ffbb
cmp edi, dword [esp + 0x248]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 4]
jne 0x4901bb
lea ecx, [esp + 0x248]
mov edx, edi
call fcn.00491df0
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 0x48ffc0
push esi
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [0x56d150]
mov eax, dword [esp + 0x250]
movsd xmm0, qword [esp + 0x248]
cmp esi, 0x80000000
mov dword [esp + 0x4d0], eax
movsd qword [esp + 0x4c8], xmm0
je 0x4902fc
mov ebx, dword [0x56d158]
mov eax, dword [0x56d154]
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x4902a3
mov eax, dword [esp + 0xc]
lea edi, [eax + 0x14]
jmp 0x490276
add edi, 0x20
dec ebx
je 0x4902a3
cmp dword [edi - 0x14], 0
je 0x49028c
push dword [edi - 0x10]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
cmp dword [edi - 4], 0
je 0x490270
push dword [edi]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x490270
test esi, esi
je 0x4902b8
push dword [esp + 0xc]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [0x56d164]
mov esi, dword [0x56d160]
lea ecx, [esi + 8]
inc ebx
nop dword [eax + eax]
cmp ebx, 1
je 0x4902e5
lea edi, [ecx + 0x148]
dec ebx
call fcn.00491e90
mov ecx, edi
jmp 0x4902d0
cmp dword [0x56d15c], 0
je 0x4902fc
push esi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0x4d0]
movq xmm0, qword [esp + 0x4c8]
mov ecx, dword [esp + 0x14]
mov dword [0x56d158], eax
movq qword [0x56d150], xmm0
mov dword [0x56d15c], 4
mov dword [0x56d160], ecx
mov dword [0x56d164], 0
mov ecx, dword [0x56d158]
test ecx, ecx
je 0x491226
mov ebx, dword [0x56d154]
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 0x4903b0
mov eax, edi
add esi, 0xfffffff8
add edi, 8
mov ecx, dword [eax]
add ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 8]
ja 0x490380
add ecx, dword [eax + 4]
cmp ecx, dword [esp + 8]
jbe 0x490380
jmp 0x4903be
mov eax, dword [esp + 0x18]
inc eax
cmp ebx, edx
jne 0x49035c
jmp 0x491226
mov edi, dword [0x56d164]
mov ecx, dword [esp + 0x18]
test edi, edi
je 0x4903f4
mov esi, dword [0x56d160]
imul eax, edi, 0x148
xor edx, edx
xor ebx, ebx
nop dword [eax]
cmp dword [esi + edx], ecx
je 0x490500
add edx, 0x148
inc ebx
cmp eax, edx
jne 0x4903e0
mov edx, dword [esp + 0x14]
cmp edx, ecx
jbe 0x4913e8
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.00491b30
add esp, 4
cmp dword [esp + 0x4c8], 0
je 0x491226
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 0x4904e6
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4904e6
mov ecx, dword [eax + 0x3c]
mov eax, dword [esp + 0x14]
sub eax, ecx
jb 0x4904e6
cmp eax, 0x78
jb 0x4904e6
mov edx, ecx
add edx, 0x78
setb byte [esp + 4]
cmp dword [ebx + ecx], 0x4550
jne 0x4904e6
movzx esi, word [ebx + ecx + 0x18]
cmp esi, 0x10b
jne 0x4904e6
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 0x4904e6
cmp ecx, 0xffffff87
jbe 0x491271
lea ecx, [esp + 0x70]
call fcn.00496c30
push ebx
call sub.KERNEL32.dll_UnmapViewOfFile
push edi
call sub.KERNEL32.dll_CloseHandle
jmp 0x491226
test ebx, ebx
je 0x4905ac
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 [0x56d164], ebx
cmp ebx, dword [0x56d15c]
jne 0x490574
mov ecx, ebx
call fcn.00496ce0
mov esi, dword [0x56d160]
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 [0x56d164], eax
jmp 0x4905b0
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 0x490648
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov eax, esi
jmp 0x4905fa
mov ebx, dword [esp + 0xc]
mov eax, esi
sub eax, ecx
jbe 0x49064f
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 0x49064c
mov ebx, dword [esp + 0xc]
cmp edi, edx
mov esi, eax
sbb ebx, ecx
jb 0x490632
mov esi, dword [esp + 0x14]
cmp dword [esp + 8], edx
mov edx, 0
sbb edx, ecx
mov ecx, dword [esp + 0x18]
jb 0x4905f0
inc eax
mov ecx, eax
jmp 0x4905f0
xor ecx, ecx
jmp 0x49064f
inc eax
mov ecx, eax
mov edx, dword [esp + 0x24]
cmp ecx, edx
ja 0x491867
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x34]
mov ebx, 3
test ecx, ecx
je 0x49075c
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 0x49069c
add esi, 0xffffffe0
add ecx, 0x20
je 0x490adf
cmp edi, dword [esi + 0x10]
mov edx, 0
sbb edx, dword [esi + 0x14]
jae 0x490adf
cmp edi, dword [esi + 8]
mov edx, 0
sbb edx, dword [esi + 0xc]
jae 0x490690
cmp edi, dword [esi]
mov edx, 0
sbb edx, dword [esi + 4]
jb 0x490690
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x18]
mov edx, dword [eax + 0x110]
cmp ecx, edx
jae 0x4913f2
imul ebx, ecx, 0x150
add ebx, dword [eax + 0x10c]
lea ecx, [esp + 0x4c8]
mov edx, ebx
push dword [esp + 0x18]
call fcn.00496d90
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 0x49076e
lea eax, [esp + 0x4d0]
lea ecx, [esp + 0x360]
lea edx, [esp + 0x248]
push eax
call fcn.004971f0
add esp, 4
mov dword [esp + 0x35c], 0
jmp 0x490827
xor eax, eax
add esi, 8
test eax, eax
jne 0x4911de
jmp 0x490aee
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.0049a540
add esp, 4
cmp byte [esp + 0x178], 2
je 0x490ad1
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 0x490955
lea ecx, [esp + 0x4e0]
call fcn.0049abd0
mov eax, dword [esp + 0x360]
mov edx, dword [esp + 0x368]
movzx ecx, byte [eax + 0x138]
cmp ecx, 0x4b
je 0x490987
cmp ecx, 0x4c
jne 0x4909b6
mov byte [eax + 0x138], 0x4b
mov dword [eax + 0x13c], 0
jmp 0x4909a5
mov esi, dword [eax + 0x13c]
test esi, esi
je 0x4909a5
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 0x490a06
mov edx, dword [edx]
mov cl, 0x4b
mov dword [esp + 0xc], 0
add edx, 8
jmp 0x490a06
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.004971f0
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.0049a540
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 0x4908e0
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0x104]
mov esi, dword [esp + 0x34]
add esi, 8
test eax, eax
jne 0x4911de
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 0x490c24
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 0x490c2b
cmp eax, 2
jb 0x490bd3
cmp dword [esp + 0x44], 0
je 0x490bd3
push dword [esp + 0x4c]
push 0
push dword [0x5920d8]
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.0049da50
add esp, 4
mov ebx, eax
jmp 0x490e0f
xor ebx, ebx
jmp 0x4911bd
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 0x490d05
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 0x490dc8
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
xor eax, 0x2f
or eax, dword [ecx + 4]
je 0x490dc8
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
cmp eax, 2
jne 0x490d7d
mov edx, dword [esp + 0x54]
lea edi, [esp + 0x4c8]
mov ecx, edi
call fcn.0049ac40
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x100]
push dword [esp + 0x5c]
push edi
call fcn.0049b010
add esp, 8
mov edi, dword [esp + 0x50]
cmp dword [edi], 2
jne 0x490d6f
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 0x490d7b
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x490d20
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + 0x18]
movzx esi, word [ecx + 0x148]
jmp 0x490d24
mov si, 2
cmp dword [esp + 0x44], 0
je 0x490d40
push dword [esp + 0x4c]
push 0
push dword [0x5920d8]
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 0x490c0b
jmp 0x490e0f
lea ecx, [esp + 0x100]
call fcn.0049d9b0
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 0x490da6
cmp byte [ecx], 0x4b
mov eax, dword [esp + 0xc]
jne 0x49125b
mov ecx, dword [ecx + 4]
jmp 0x490daa
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x490dc8
cmp dword [ecx + 4], eax
mov edx, eax
jbe 0x490dc8
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 0x490dc8
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 0x49122e
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.004b2060
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 0x490e93
mov ecx, 2
cmp ecx, 1
je 0x490f50
cmp ecx, 2
jne 0x4911b7
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 0x49102f
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 0x490eff
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
xor eax, 0x2f
or eax, dword [ecx + 4]
jne 0x4910c4
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 0x491097
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 0x490fbf
cmp eax, 2
jb 0x490f6d
cmp dword [esp + 0x44], 0
je 0x490f6d
push dword [esp + 0x4c]
push 0
push dword [0x5920d8]
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.0049da50
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.004b2060
mov eax, dword [esp + 4]
jmp 0x490e80
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x491138
mov ecx, dword [esp + 0x40]
mov esi, dword [eax + 0x18]
movzx edi, word [ecx + 0x148]
cmp dword [esp + 0x44], 0
je 0x491064
push dword [esp + 0x4c]
push 0
push dword [0x5920d8]
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 0x490fa9
jmp 0x490fbf
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 0x490fa9
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
cmp eax, 2
jne 0x49115a
mov edx, dword [esp + 0x54]
lea edi, [esp + 0x4c8]
mov ecx, edi
call fcn.0049ac40
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x100]
push dword [esp + 0x5c]
push edi
call fcn.0049b010
add esp, 8
mov edi, dword [esp + 0x50]
cmp dword [edi], 2
jne 0x49114c
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 0x491158
mov di, 2
cmp dword [esp + 0x44], 0
jne 0x491053
jmp 0x491064
lea ecx, [esp + 0x100]
call fcn.0049d9b0
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 0x49118a
cmp byte [ecx], 0x4b
mov eax, dword [esp + 4]
jne 0x491257
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x491196
jmp 0x490eff
mov eax, dword [esp + 4]
test ecx, ecx
je 0x490eff
cmp dword [ecx + 4], eax
mov edx, eax
jbe 0x490eff
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 0x490eff
mov esi, dword [esp + 0x34]
mov bl, 1
cmp eax, 2
jb 0x4911da
cmp dword [esp + 0x44], 0
je 0x4911da
push dword [esp + 0x4c]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
test bl, bl
jne 0x491226
mov edx, dword [esp + 8]
mov ecx, esi
push 0
call fcn.0049da50
add esp, 4
test eax, eax
je 0x491226
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.004b2060
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 0x490c0b
mov bl, 1
jmp 0x49125d
xor ebx, ebx
cmp dword [esp + 0x44], 0
mov esi, dword [esp + 0x34]
jne 0x4911c9
jmp 0x4911da
test eax, eax
jne 0x4904e6
mov esi, dword [esp + 0x14]
sub esi, edx
jb 0x4904e6
cmp dword [esp + 0x10], esi
ja 0x4904e6
mov esi, dword [ebx + ecx + 0x74]
cmp esi, 0x1fffffff
ja 0x4904e6
shl esi, 3
cmp esi, dword [esp + 0x10]
ja 0x4904e6
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 0x4904e6
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
jb 0x4904e6
movzx edx, word [ebx + ecx + 6]
mov dword [esp + 0x24], edx
lea edx, [edx*8]
lea edx, [edx + edx*4]
cmp edx, eax
ja 0x4904e6
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 0x4913fc
mov eax, dword [ebx + ecx + 0x10]
mov edi, dword [esp + 0x20]
mov edx, 0x12
mov dword [esp + 0x28], eax
mul edx
jo 0x4904e6
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 4]
jb 0x4904e6
cmp eax, edx
ja 0x4904e6
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 0x4904e6
cmp byte [esp + 0x30], 0
jne 0x4904e6
cmp eax, 4
jb 0x4904e6
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 0x49181e
add dword [esp + 4], ebx
xor edx, edx
mov eax, 4
mov dword [esp + 0x30], 0
jmp 0x491768
push 0x57ed10
call fcn.004699c0
push 0x57d184
call fcn.004699c0
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 0x491460
bsr esi, edx
xor esi, 0x1f
sub eax, esi
push eax
push 0
call fcn.00491f30
add esp, 8
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x20]
cmp eax, 0x80000000
je 0x4904e6
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.00492840
add esp, 8
mov eax, dword [esp + 0x4f0]
mov edi, dword [esp + 0x20]
cmp eax, 0x80000000
je 0x4904e6
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 [0x56d164]
mov eax, dword [esp + 0x14]
mov esi, dword [0x56d15c]
cmp ebx, 4
mov dword [esp + 0x488], eax
jne 0x49169e
mov dword [0x56d164], 3
mov eax, 0x3d8
add eax, dword [0x56d160]
push 0x148
push eax
lea eax, [esp + 0x4d0]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x4f8], 0x80000000
je 0x491699
lea ecx, [esp + 0x4d0]
call fcn.00491e90
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 0x4916d1
mov ecx, esi
call fcn.00496ce0
mov esi, dword [0x56d160]
test ebx, ebx
je 0x4917dd
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 [0x56d164], ebx
jne 0x4905b0
xor ecx, ecx
xor edx, edx
push 0x57ed20
call fcn.004699c0
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 0x491815
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 0x49174c
mov edi, dword [esp + 4]
movzx edi, word [edi + ecx*2 + 0xe]
and edi, 0x30
cmp di, 0x20
jne 0x49174c
dec esi
cmp esi, dword [esp + 0x24]
jae 0x491840
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 0x491739
lea ecx, [esp + 0x88]
call fcn.004927a0
jmp 0x49172b
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 [0x56d164], 1
jmp 0x4905b0
mov ecx, 8
mov edx, 0x520
call fcn.00429f60
mov ecx, dword [esp + 0x8c]
jmp 0x491825
mov ecx, 4
xor edx, edx
mov dword [esp + 4], ebx
mov eax, 0x20
test edx, edx
mov esi, 0x20
jne 0x49145a
jmp 0x491460
cmp dword [esp + 0x88], 0
je 0x49185e
push dword [esp + 0x8c]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esp + 0x20]
jmp 0x4904e6
push 0x57d174
call fcn.0046a750
mov ecx, 4
mov edx, 8
call fcn.00429f60
ud2