Function at 0x10067780
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x100df00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
xor eax, eax
mov dword [ebp - 0x60], 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x64], eax
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], eax
push 8
push 1
mov dword [ebp - 4], edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
push 0x48
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], esi
call fcn.100be7ee
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, eax
call fcn.10066c40
mov dword [ebp - 0x14], eax
test esi, esi
je 0x100683a5
test eax, eax
je 0x100683a5
cmp dword [ebx + 0x244], edi
je 0x10067830
mov ecx, ebx
call fcn.10067590
mov dword [ebx + 0x244], edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebx + 0x3c]
push eax
call dword [sym.imp.HncFoundation.dll_HncCreateFile]
mov dword [ebx + 0x244], eax
cmp eax, 0xffffffff
je 0x100683a5
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 0x248], eax
test eax, eax
je 0x1006836e
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x244]
test eax, eax
je 0x1006836e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebx + 0x38]
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebx + 0x24c], eax
add eax, esi
mov dword [ebx + 0x34], 1
mov dword [ebp - 0x40], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0
mov dword [ebx], 1
cmp esi, eax
ja 0x10067a17
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
xor eax, eax
jmp 0x100678e6
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
jne 0x10067a17
mov eax, dword [ebx]
dec eax
cmp eax, 0x1a
ja case.0x100678fa.9
jmp dword [eax*4 + 0x100683bc]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
add eax, 3
mov dword [ebx + 0x28], 0
mov dword [ebp - 0x44], 0
mov dword [ebx + 4], eax
mov dword [ebx], 2
jmp 0x10067a02
push 3
push 0x100c5438
push dword [ebx + 8]
call edx
add esp, 0xc
test eax, eax
je 0x10067944
mov dword [ebx], 0x13
jmp 0x10067a02
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
add eax, 3
mov dword [ebx + 4], eax
mov dword [ebx], 3
jmp 0x10067a02
push 3
push 0x100c543c
push dword [ebx + 8]
call edx
add esp, 0xc
test eax, eax
jne 0x10067977
mov dword [ebx + 0x14], 0x59
jmp 0x10067996
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
push 3
push 0x100c5440
push dword [ebx + 8]
call eax
add esp, 0xc
test eax, eax
jne 0x10067939
mov dword [ebx + 0x14], 0x57
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
add eax, 7
mov dword [ebx + 4], eax
mov dword [ebx], 4
jmp 0x10067a02
mov edx, dword [ebx + 8]
mov edi, 2
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx eax, byte [edx + 5]
mov dword [ebx + 0x10], eax
movzx ecx, byte [edx + 4]
and ecx, 7
shl edi, cl
mov dword [ebx + 0x24], edi
cmp byte [edx + 4], 0
mov dword [ebx + 8], esi
jge 0x10067a7f
lea eax, [esi + edi*2]
mov dword [ebx], 5
add eax, edi
mov dword [ebx + 4], eax
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 4]
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
cmp esi, dword [ebp - 0x40]
jbe 0x100678e0
mov ecx, ebx
call fcn.10067590
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10067a2d
push ecx
mov ecx, eax
call fcn.10067280
mov eax, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x10067a40
push eax
call ebx
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x10067a4d
push eax
call ebx
add esp, 4
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10067a5a
push eax
call ebx
add esp, 4
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x10067a6a
push eax
call ebx
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
mov dword [ebx], 6
mov dword [ebx + 4], eax
jmp 0x100679ff
cmp dword [ebx + 0x20], 0
jne 0x10067afd
push 4
push dword [ebx + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [ebx + 0x20], eax
test eax, eax
jne 0x10067ab6
mov dword [ebx], 0x12
jmp 0x10067a02
xor edx, edx
cmp dword [ebx + 0x24], edx
jbe 0x10067afd
nop dword [eax]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
movzx eax, byte [eax]
mov byte [ecx + edx*4 + 2], al
inc dword [ebx + 8]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
movzx eax, byte [eax]
mov byte [ecx + edx*4 + 1], al
inc dword [ebx + 8]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x20]
movzx eax, byte [eax]
mov byte [ecx + edx*4], al
mov eax, dword [ebx + 0x20]
inc dword [ebx + 8]
mov byte [eax + edx*4 + 3], 0xff
inc edx
cmp edx, dword [ebx + 0x24]
jb 0x10067ac0
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
inc eax
mov dword [ebx], 6
mov dword [ebx + 4], eax
jmp 0x10067a02
mov eax, dword [ebx + 8]
mov dword [ebp - 0x44], 0
mov al, byte [eax]
cmp al, 0x21
je 0x10067b77
cmp al, 0x2c
je 0x10067b54
cmp al, 0x3b
je 0x10067b5b
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x10067939
cmp dword [ebx + 0x20], 0
jne 0x10067939
mov dword [ebx + 8], esi
lea eax, [esi + 1]
mov dword [ebx], 6
mov dword [ebx + 4], eax
jmp 0x10067a02
mov dword [ebx + 8], esi
test edi, edi
je 0x10067b66
mov dword [ebx], 0x1b
jmp 0x10067a02
lea eax, [esi + 9]
mov dword [ebx], 7
mov dword [ebx + 4], eax
jmp 0x10067a02
lea eax, [esi + 2]
mov dword [ebx + 8], esi
mov dword [ebx + 4], eax
mov dword [ebx], 0xd
jmp 0x10067a02
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0x28], 0
je 0x10067d21
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 8]
mov eax, edi
imul eax, ecx
push 1
mov dword [ebp - 0x2c], ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, eax
add esp, 8
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x10067bd1
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor esi, esi
push esi
call edi
mov edi, dword [ebp - 0x14]
add esp, 4
jmp 0x10067d5b
mov esi, dword [ebp - 0x4c]
xor eax, eax
mov ebx, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
cmp eax, 3
ja case.default.0x10067bea
jmp dword [eax*4 + 0x10068428]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jle case.default.0x10067bea
lea eax, [ecx - 1]
mov ebx, edx
shr eax, 3
inc eax
mov dword [ebp - 0x38], eax
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [edi*8]
add esp, 0xc
add esi, edi
add ebx, eax
sub dword [ebp - 0x38], 1
jne 0x10067c08
jmp 0x10067cbd
mov ecx, dword [ebp - 0x2c]
cmp ecx, 4
jle case.default.0x10067bea
lea eax, [ecx - 5]
shr eax, 3
lea ebx, [edx + edi*4]
inc eax
mov dword [ebp - 0x38], eax
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [edi*8]
add esp, 0xc
add esi, edi
add ebx, eax
sub dword [ebp - 0x38], 1
jne 0x10067c42
jmp 0x10067cbd
mov ecx, dword [ebp - 0x2c]
cmp ecx, 2
jle case.default.0x10067bea
lea eax, [ecx - 3]
shr eax, 2
lea ebx, [edx + edi*2]
inc eax
mov dword [ebp - 0x38], eax
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [edi*4]
add esp, 0xc
add esi, edi
add ebx, eax
sub dword [ebp - 0x38], 1
jne 0x10067c75
jmp 0x10067cbd
mov ecx, dword [ebp - 0x2c]
cmp ecx, 1
jle case.default.0x10067bea
lea eax, [ecx - 2]
shr eax, 1
lea ebx, [edx + edi]
inc eax
mov dword [ebp - 0x38], eax
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ebx, [ebx + edi*2]
add esi, edi
sub dword [ebp - 0x38], 1
jne 0x10067ca7
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
inc eax
sub ebx, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
jne 0x10067be1
mov ebx, dword [ebp - 0x14]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x10067cec
push eax
call edi
add esp, 4
mov esi, dword [ebp - 0x48]
push 1
push esi
mov dword [ebx + 0x34], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push esi
mov dword [ebx + 0x38], esi
mov esi, dword [ebp - 0x28]
push esi
push eax
mov dword [ebx + 0x34], eax
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0x3c]
add esp, 0x14
push esi
call edi
mov edi, dword [ebp - 0x14]
add esp, 4
jmp 0x10067d5b
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x10067d5b
mov eax, dword [edi + 0x34]
test eax, eax
je 0x10067d35
push eax
call ecx
add esp, 4
push 1
push dword [ebp - 0x48]
mov dword [edi + 0x34], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ecx, dword [ebp - 0x48]
push ecx
push esi
push eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x14
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x10067d74
push 8
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
je 0x10067d8e
push 8
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov dword [esi + 4], eax
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
push 0x48
mov dword [esi], edi
mov dword [esi + 4], 0
call fcn.100be7ee
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, eax
call fcn.10066c40
mov ecx, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
cmp byte [ecx], 0x3b
jne 0x10067afd
mov dword [ebx], 0x11
jmp 0x10067a02
mov ecx, dword [ebx + 8]
movzx edi, byte [ecx + 1]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 3]
movzx esi, byte [ecx + 7]
shl edi, 8
or edi, eax
shl edx, 8
movzx eax, byte [ecx + 2]
or edx, eax
shl esi, 8
movzx eax, byte [ecx + 4]
mov dword [ebp - 0x38], edx
movzx edx, byte [ecx + 5]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 6]
or esi, eax
cmp dword [ebx + 0x28], 0
jne 0x10067e25
cmp dword [ebx + 0x1c], esi
jb 0x10067e19
cmp dword [ebx + 0x18], edx
jb 0x10067e19
cmp dword [ebx + 0x14], 0x57
jne 0x10067e25
xor edi, edi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], edx
xor eax, eax
jmp 0x10067e28
mov eax, dword [ebp - 0x38]
test esi, esi
je 0x10067e30
test edx, edx
jne 0x10067e38
mov edx, dword [ebx + 0x18]
test edx, edx
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x14]
js 0x10067e47
test esi, esi
js 0x10067e47
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
mov dword [ecx], edi
mov dword [ecx + 4], eax
cmp dword [ebx + 0x18], edx
jae 0x10067e5c
mov dword [ebx + 0x18], edx
cmp dword [ebx + 0x1c], esi
jae 0x10067e5c
mov dword [ebx + 0x1c], esi
mov eax, dword [ebp - 0x4c]
imul esi, edx
test eax, eax
je 0x10067e72
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call edi
add esp, 4
push 1
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x10067ee1
mov dword [ebp - 0x48], esi
cmp esi, 0xffffffff
je 0x10067ee1
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
movzx eax, byte [eax + 8]
shr eax, 6
and eax, 1
mov dword [ecx + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], 0
mov al, byte [eax + 8]
test al, al
jns 0x10067f64
movzx ecx, al
mov edx, 2
mov eax, dword [ebx + 4]
and ecx, 7
shl edx, cl
mov dword [ebx + 8], eax
mov dword [ebp - 0x20], edx
mov dword [ebx], 8
lea eax, [eax + edx*2]
add eax, edx
mov dword [ebx + 4], eax
jmp 0x10067a02
mov dword [ebx], 0x12
jmp 0x100679ff
mov esi, dword [ebx + 8]
test esi, esi
je 0x10067f64
mov edx, dword [ebp - 0x20]
test edx, edx
js 0x10067f64
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x10067f0d
push eax
call ecx
mov edx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [ebp - 0x14]
push 4
push edx
mov dword [eax + 0x3c], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, dword [ebp - 0x14]
mov ecx, eax
add esp, 8
mov dword [edx + 0x3c], ecx
test ecx, ecx
je 0x10067f64
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x40], eax
test eax, eax
jle 0x10067f64
lea edx, [esi + 2]
mov esi, eax
nop
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
mov byte [ecx + 2], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 4], al
mov byte [ecx - 1], 0xff
sub esi, 1
jne 0x10067f40
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
inc eax
mov dword [ebx + 4], eax
mov dword [ebx], 0xa
jmp 0x10067a02
mov eax, dword [ebx + 8]
mov al, byte [eax]
movzx ecx, al
mov dword [ebp - 0x74], ecx
cmp al, 0xc
ja 0x10067939
mov esi, 1
mov dword [ebp - 0x60], 0xffffffff
shl esi, cl
inc ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x54], 0
lea eax, [esi + 2]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], eax
mov eax, 1
shl eax, cl
dec eax
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], eax
jne 0x10067fd9
push 0x1001
push 2
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], 0
jne 0x10067ff2
push 0x1001
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x84]
test edx, edx
jne 0x10068014
push 0x1001
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, eax
add esp, 8
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x7c], 0
je 0x10067939
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x10067939
test edx, edx
je 0x10067939
cmp esi, 0x1001
jge 0x10067939
xor eax, eax
test esi, esi
jle 0x1006804b
mov byte [ecx + eax], al
inc eax
cmp eax, esi
jl 0x10068043
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
inc eax
mov dword [ebp - 0x80], edx
mov dword [ebx + 4], eax
mov dword [ebx], 0xc
jmp 0x10067a02
mov eax, dword [ebx + 8]
movzx edi, byte [eax]
mov dword [ebp - 0x58], edi
test edi, edi
je 0x100680b0
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x44], ecx
jge 0x1006808c
inc eax
lea ecx, [ebp - 0x84]
push eax
call fcn.100668f0
test eax, eax
js 0x100680a5
mov esi, dword [ebx + 4]
test edi, edi
je 0x100680b0
lea eax, [edi + esi]
mov dword [ebx], 0xc
mov dword [ebx + 8], eax
inc eax
mov dword [ebx + 4], eax
jmp 0x100679ff
mov dword [ebx], 0x13
jmp 0x100679ff
inc dword [ebx + 0x28]
lea eax, [esi + 1]
mov edi, 1
mov dword [ebx + 8], esi
mov dword [ebp - 0x18], edi
mov dword [ebx + 4], eax
mov dword [ebx], 6
jmp 0x10067a02
mov eax, dword [ebx + 8]
mov ecx, 0x10
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
sub eax, 0xf9
je 0x100680fb
sub eax, 5
je 0x100680f4
sub eax, 1
jne 0x10068100
lea ecx, [eax + 0x15]
jmp 0x10068100
mov ecx, 0x18
jmp 0x10068100
mov ecx, 0xe
mov eax, esi
test edi, edi
je 0x1006811f
cmp ecx, 0xe
jne 0x1006811f
lea eax, [esi - 3]
mov dword [ebx], 0x1b
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
jmp 0x10067a02
mov dword [ebx + 8], eax
test edx, edx
je 0x10067b03
add eax, edx
mov dword [ebx], ecx
mov dword [ebx + 4], eax
jmp 0x10067a02
mov eax, dword [ebx + 8]
mov al, byte [eax]
mov dword [ebx + 8], esi
test al, al
jne 0x10068153
lea eax, [esi + 1]
mov dword [ebx], 6
mov dword [ebx + 4], eax
jmp 0x10067a02
movzx eax, al
add eax, esi
mov dword [ebx], 0x10
mov dword [ebx + 4], eax
jmp 0x10067a02
lea eax, [esi + 1]
mov dword [ebx + 8], esi
mov dword [ebx + 4], eax
mov dword [ebx], 0xf
jmp 0x10067a02
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x14]
test byte [eax], 1
je 0x10068194
mov al, byte [eax + 3]
mov byte [edx + 0x20], al
mov dword [edx + 0x1c], 1
jmp 0x1006819b
mov dword [edx + 0x1c], 0
mov dword [edx + 0x10], 1
mov eax, dword [ebx + 8]
movzx eax, byte [eax]
shr eax, 2
and eax, 7
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 8]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, 0xa
add eax, eax
cmp eax, 0xa
cmovb eax, ecx
mov dword [edx + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
inc eax
mov dword [ebx + 4], eax
mov dword [ebx], 0xf
jmp 0x10067a02
mov eax, dword [ebx + 8]
movzx eax, byte [eax]
mov dword [ebx + 8], esi
test eax, eax
je 0x10067b43
add eax, esi
mov dword [ebx], 0x18
mov dword [ebx + 4], eax
jmp 0x10067a02
lea eax, [esi + 1]
mov dword [ebx + 8], esi
mov dword [ebx + 4], eax
mov dword [ebx], 0x14
jmp 0x10067a02
push 0xb
push str.NETSCAPE2.0
push dword [ebx + 8]
call edx
add esp, 0xc
test eax, eax
je 0x10068249
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
push 0xb
push str.ANIMEXTS1.0
push dword [ebx + 8]
call eax
add esp, 0xc
test eax, eax
jne 0x100681d4
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
inc eax
mov dword [ebx + 4], eax
mov dword [ebx], 0x16
jmp 0x10067a02
mov eax, dword [ebx + 8]
mov al, byte [eax]
mov dword [ebx + 8], esi
test al, al
je 0x10067b43
movzx eax, al
add eax, esi
mov dword [ebx], 0x17
mov dword [ebx + 4], eax
jmp 0x10067a02
mov edx, dword [ebx + 8]
movzx eax, byte [edx]
and eax, 7
cmp eax, 1
jne 0x100682b6
mov dword [ebx + 0x2c], eax
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], ecx
lea eax, [esi + 1]
mov dword [ebx + 8], esi
mov dword [ebx + 4], eax
mov dword [ebx], 0x16
jmp 0x10067a02
cmp eax, 2
jne 0x10067a02
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov dword [ebx], 0x1a
lea eax, [ecx + esi]
mov dword [ebx + 4], eax
jmp 0x10067a02
mov eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10067a05
push 4
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov dword [ebx + 0x254], eax
xor esi, esi
mov eax, dword [ebp - 0x30]
add esp, 8
mov edx, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0x28], esi
jle 0x1006835e
test edx, edx
je 0x1006833f
mov ecx, dword [ebx + 0x254]
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
mov eax, edx
mov edx, dword [edx + 4]
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x10068350
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [ebp - 0x1c]
add esp, 4
inc esi
xor eax, eax
cmp esi, dword [ebx + 0x28]
jl 0x10068328
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], esi
mov eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], eax
jmp 0x10067a05
mov eax, dword [ebx + 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x1006838c
push eax
call esi
mov dword [ebx + 0x244], 0
push dword [ebx + 0x248]
call esi
mov dword [ebx + 0x248], 0
mov dword [ebx + 0x34], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret