Function at 0x100a4790
Capabilities:
Get file size
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
mov esi, ecx
mov dword [ebp - 0x10], 0
push 1
push 0x80000000
lea eax, [esi + 0x94]
push eax
call dword [sym.imp.HncFoundation.dll_HncCreateFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100a5045
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x100a5035
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100a5035
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esi + 0x2b8]
mov ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x90], eax
mov dword [esi + 0x2a4], ecx
mov dword [esi + 0x2a0], edi
mov dword [esi + 0x29c], ebx
mov dword [esi + 0x8c], 1
test edx, edx
je 0x100a5045
mov ebx, dword [edx]
lea edx, [ecx + eax]
mov dword [ebp - 8], edx
mov edi, dword [ebx]
add edi, eax
mov dword [esi], 1
mov dword [ebp - 4], edi
xor edi, edi
cmp dword [ebp - 4], edx
ja case.0x100a488d.19
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
cmp eax, 0x1b
ja case.0x100a488d.2
jmp dword [eax*4 + 0x100a5050]
mov edx, edi
mov ecx, esi
call fcn.100a4550
mov edx, dword [ebp - 0xc]
test eax, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jns 0x100a48b5
mov dword [esi], 0x13
jmp 0x100a4f7b
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0xc
jmp 0x100a4f7b
movzx ecx, byte [edi]
mov dword [esi + 0x20], ecx
cmp ecx, 0xc
jbe 0x100a48e7
mov ecx, dword [ebp - 8]
mov dword [esi], 0x13
jmp case.0x100a488d.2
mov eax, 1
mov dword [esi + 0x34], 0xffffffff
shl eax, cl
inc ecx
mov dword [esi + 0x2c], eax
add eax, 2
mov dword [esi + 0x30], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [esi + 0x24], ecx
cmp dword [esi + 0x18], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
jne 0x100a4933
push 0x1001
push 2
call edx
mov edx, dword [ebp - 0xc]
add esp, 8
mov dword [esi + 0x18], eax
cmp dword [esi + 0x1c], 0
jne 0x100a4948
push 0x1001
push 1
call edx
add esp, 8
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x10], 0
jne 0x100a495e
push 0x1001
push 1
call dword [ebp - 0xc]
add esp, 8
mov dword [esi + 0x10], eax
cmp dword [esi + 0x18], 0
je 0x100a4a9b
cmp dword [esi + 0x1c], 0
je 0x100a4a9b
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100a4a9b
mov edx, dword [esi + 0x2c]
cmp edx, 0x1001
jl 0x100a4999
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], 0x13
jmp case.0x100a488d.2
xor ecx, ecx
test edx, edx
jle 0x100a49af
nop
mov eax, dword [esi + 0x1c]
mov byte [ecx + eax], cl
inc ecx
cmp ecx, dword [esi + 0x2c]
jl 0x100a49a0
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0xc
jmp case.0x100a488d.2
mov dword [esi + 0x50], 0
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 6
jmp case.0x100a488d.2
mov al, byte [edi]
cmp al, 0x3b
jne 0x100a4a02
mov dword [esi], 0x11
jmp case.0x100a488d.2
cmp al, 0x21
jne 0x100a4a1f
mov dword [esi], 0
mov dword [esi + 4], 2
mov dword [esi + 8], 0xd
jmp case.0x100a488d.2
cmp al, 0x2c
jne 0x100a4a51
cmp dword [ebp - 0x10], 0
mov eax, 7
mov ecx, 0x1b
mov dword [esi], 0
cmove ecx, eax
xor eax, eax
cmp dword [ebp - 0x10], eax
cmove eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
jmp case.0x100a488d.2
mov dword [esi], 0x13
jmp case.0x100a488d.2
mov eax, dword [esi + 0x2b8]
cmp dword [eax + 4], 0
jne 0x100a4fa5
push 8
push 1
call edx
mov ecx, dword [esi + 0x2b8]
push 0x38
push 1
mov dword [ecx + 4], eax
call dword [ebp - 0xc]
mov ebx, eax
add esp, 0x10
mov eax, dword [esi + 0x2b8]
cmp dword [eax + 4], 0
je 0x100a4a9b
test ebx, ebx
jne 0x100a4f85
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], 0x12
jmp case.0x100a488d.2
movzx edx, byte [edi + 1]
mov ecx, 0x10
mov dword [esi + 0x3c], edx
movzx eax, byte [edi]
dec eax
cmp eax, 0xfe
ja case.0x100a4aca.1
movzx eax, byte [eax + 0x100a50d4]
jmp dword [eax*4 + 0x100a50c0]
mov ecx, 0xe
jmp case.0x100a4aca.1
mov ecx, 0x15
jmp case.0x100a4aca.1
mov ecx, 0x18
cmp dword [ebp - 0x10], 0
je 0x100a4b17
cmp ecx, 0xe
jne 0x100a4b17
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub eax, 3
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x1b
jmp 0x100a4f7b
test edx, edx
jne 0x100a4b25
mov ecx, 6
mov edx, 1
mov dword [esi], 0
mov dword [esi + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
jmp case.0x100a488d.2
cmp byte [edi], 0
mov dword [esi], 0
jne 0x100a4b5f
mov ecx, 1
mov eax, 6
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
jmp case.0x100a488d.2
movzx ecx, byte [edi]
mov eax, 0x10
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
jmp case.0x100a488d.2
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0xf
jmp case.0x100a488d.2
test byte [edi], 1
je 0x100a4ba1
movzx eax, byte [edi + 3]
mov dword [ebx + 0x30], eax
mov eax, 1
jmp 0x100a4ba3
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x20], 1
movzx eax, byte [edi]
shr eax, 2
and eax, 7
mov dword [ebx + 0x24], eax
movzx ecx, byte [edi + 2]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0xc], 1
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 8]
add eax, eax
mov dword [ebx + 0x28], eax
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0xf
jmp case.0x100a488d.2
movzx ecx, byte [edi]
mov edx, 1
test ecx, ecx
mov dword [esi + 0x3c], ecx
mov eax, 0x18
mov dword [esi], 0
cmovne edx, ecx
mov ecx, 6
cmove eax, ecx
mov dword [esi + 4], edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
jmp case.0x100a488d.2
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0x14
jmp case.0x100a488d.2
push 0xb
push str.NETSCAPE2.0
push edi
call dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x100a4c67
push 0xb
push str.ANIMEXTS1.0
push edi
call dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov eax, 0xf
jne 0x100a4c6c
mov eax, 0x16
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], eax
jmp case.0x100a488d.2
cmp byte [edi], 0
mov dword [esi], 0
je 0x100a4ca8
movzx ecx, byte [edi]
mov eax, 0x17
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
jmp case.0x100a488d.2
mov ecx, 1
mov eax, 6
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], eax
jmp case.0x100a488d.2
movzx eax, byte [edi]
and eax, 7
cmp eax, 1
jne 0x100a4d00
mov dword [esi + 0x84], eax
movzx ecx, byte [edi + 2]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esi], 0
mov dword [esi + 0x88], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0x16
jmp case.0x100a488d.2
cmp eax, 2
jne case.0x100a488d.2
movzx ecx, byte [edi + 4]
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esi], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], 0x1a
jmp case.0x100a488d.2
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0x16
jmp case.0x100a488d.2
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x10], ecx
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx edx, byte [edi + 5]
movzx eax, byte [edi + 4]
movzx ecx, byte [edi + 7]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 6]
or ecx, eax
cmp dword [esi + 0x70], 0
jne 0x100a4dbf
cmp dword [esi + 0x60], ecx
jb 0x100a4dab
cmp dword [esi + 0x5c], edx
jb 0x100a4dab
cmp dword [esi + 0x58], 0x57
jne 0x100a4dbf
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
test ecx, ecx
je 0x100a4dc7
test edx, edx
jne 0x100a4dcd
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x5c]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x18], edx
cmp dword [esi + 0x5c], edx
jae 0x100a4de9
mov dword [esi + 0x5c], edx
mov ecx, dword [ebx + 0x1c]
cmp dword [esi + 0x60], ecx
jae 0x100a4de9
mov dword [esi + 0x60], ecx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
imul eax, ecx
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
test ecx, ecx
je 0x100a4e03
push ecx
call dword [ebp - 0x18]
mov eax, dword [esi + 0x4c]
add esp, 4
push eax
push 1
mov dword [esi + 0x48], 0
call dword [ebp - 0xc]
add esp, 8
mov dword [esi + 0x48], eax
test eax, eax
jne 0x100a4e2b
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], 0x12
jmp case.0x100a488d.2
movzx eax, byte [edi + 8]
shr eax, 6
and eax, 1
mov dword [esi + 0x78], eax
mov dword [esi + 0xc], 0
mov al, byte [edi + 8]
test al, al
jns 0x100a4e63
movzx ecx, al
mov eax, 2
and ecx, 7
shl eax, cl
mov ecx, 8
mov dword [esi + 0x7c], eax
lea eax, [eax + eax*2]
lea edx, [ecx - 7]
jmp 0x100a4e6f
mov ecx, 0xa
mov eax, 1
xor edx, edx
mov dword [esi + 0x74], edx
mov edx, dword [ebp - 0xc]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
jmp case.0x100a488d.2
mov eax, dword [esi + 0x80]
test eax, eax
je 0x100a4e9d
push eax
call dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add esp, 4
push 4
push dword [esi + 0x7c]
mov dword [esi + 0x80], 0
call edx
add esp, 8
test eax, eax
jne 0x100a4ec6
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], 0x12
jmp case.0x100a488d.2
xor edx, edx
mov dword [esi + 0x80], eax
cmp dword [esi + 0x7c], edx
jle 0x100a4efa
lea ecx, [eax + 2]
movzx eax, byte [edi]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
inc edx
movzx eax, byte [edi + 1]
mov byte [ecx - 5], al
movzx eax, byte [edi + 2]
add edi, 3
mov byte [ecx - 4], al
mov byte [ecx - 3], 0
cmp edx, dword [esi + 0x7c]
jl 0x100a4ed6
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 0xa
jmp case.0x100a488d.2
movzx eax, byte [edi]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x100a4f36
mov ecx, 0xb
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
jmp case.0x100a488d.2
inc dword [esi + 0x70]
cmp dword [ebx + 0x28], 0xa
mov dword [ebp - 0x10], 1
jae 0x100a4f4d
mov dword [ebx + 0x28], 0xa
mov ecx, 6
mov dword [esi], 0
mov eax, 1
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
jmp case.0x100a488d.2
mov eax, dword [ebp - 4]
mov edi, eax
add eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
cmp eax, ecx
jbe 0x100a4882
jmp case.0x100a488d.19
sub edi, dword [esi + 0x90]
mov dword [ebx], edi
mov eax, dword [esi + 0x70]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0xffffffff
mov eax, dword [esi + 0x2b8]
mov eax, dword [eax + 4]
mov dword [eax], ebx
mov ebx, 1
jmp 0x100a4fca
cmp dword [esi + 0x70], 1
jne 0x100a4fb9
mov dword [esi + 0x70], 0
mov ebx, 1
jmp 0x100a4fca
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
xor ebx, ebx
cmp dword [esi + 0x8c], 0
je 0x100a502c
mov eax, dword [esi + 0x90]
test eax, eax
je 0x100a4fe4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x2a0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100a4ff7
push eax
call edi
mov eax, dword [esi + 0x29c]
test eax, eax
je 0x100a5004
push eax
call edi
mov dword [esi + 0x90], 0
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x29c], 0
mov dword [esi + 0x8c], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
test edi, edi
je 0x100a5045
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret