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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10194e17
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov ecx, dword [esi + 0xc]
xor ebx, ebx
and dword [ebp - 0x230], ebx
and dword [ebp - 0x22c], ebx
inc ecx
mov al, byte [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
mov byte [ebp - 0x23c], al
mov dword [esi + 0xc], ecx
mov eax, dword [0x101c33f0]
mov edx, ecx
cmp eax, 0x101c33f0
je 0x100a9e22
test byte [eax + 0x44], 4
je 0x100a9e22
push ecx
push edi
push dword [eax + 0x3c]
mov edx, 0x1002306c
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.1004a0f3
mov edx, dword [esi + 0xc]
mov eax, dword [0x101c33f0]
cmp edx, 0x10
jbe 0x100a9e51
cmp eax, 0x101c33f0
je 0x100a9e47
test byte [eax + 0x44], 1
je 0x100a9e47
push dword [eax + 0x3c]
mov edx, 0x1002306c
push dword [eax + 0x38]
push 0xb
pop ecx
call fcn.1004a045
mov eax, 0x80004005
jmp 0x100aa1bd
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x100a9e9b
mov edi, dword [esi + 4]
push dword [ebp - 0x23c]
push dword [ebp - 0x21c]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x101d880c]
mov ecx, edi
call esi
mov ecx, eax
test ecx, ecx
jne 0x100a9e8a
mov ebx, 0x80070002
mov esi, dword [ebp - 0x224]
xor edx, edx
mov edi, dword [ebp - 0x21c]
inc edx
jmp 0x100a9ea7
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
and dword [ebp - 0x22c], 0
xor eax, eax
or dword [ebp - 0x21c], 0xffffffff
and dword [ebp - 0x234], eax
mov dword [ebp - 0x228], eax
test ebx, ebx
js 0x100a9f8e
test edx, edx
jne 0x100a9ed1
mov ecx, edi
push 0
push 0x100080
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x21c], edi
cmp edi, 0xffffffff
je 0x100a9f7e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x100a9f70
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x100a9f70
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0x230]
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x22c]
test edx, edx
je 0x100a9f70
mov ecx, dword [ebp - 0x21c]
mov eax, edx
add ecx, edx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x228], eax
jmp 0x100a9f99
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x21c], 0xffffffff
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp - 0x234]
mov ebx, 0x80004005
and dword [ebp - 0x240], 0
test ebx, ebx
js 0x100aa19b
mov edi, eax
cmp eax, ecx
jae 0x100a9fd9
mov edx, dword [ebp - 0x234]
mov cl, byte [edi]
cmp cl, 0xa
je 0x100a9fc7
cmp cl, 0xd
je 0x100a9fc7
inc edi
cmp edi, edx
jb 0x100a9fb4
jmp 0x100a9fd9
inc edi
cmp edi, edx
jae 0x100a9fd9
mov cl, byte [edi]
cmp cl, 0xa
je 0x100a9fd8
cmp cl, 0xd
jne 0x100a9fd9
inc edi
sub edi, eax
je 0x100aa158
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x220]
and dword [ebp - 0x230], 0
push ecx
push edi
push eax
call fcn.100a9d4d
mov dword [ebp - 0x238], eax
test eax, eax
je 0x100aa0f0
cmp dword [ebp - 0x220], 9
jbe 0x100aa0f0
push 9
push 0x1002305c
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100aa0f0
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x220]
sub eax, 9
push ecx
push eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x238]
add eax, 9
push eax
call fcn.100a9d4d
mov dword [ebp - 0x238], eax
test eax, eax
je 0x100aa0f0
cmp byte [eax], 0x22
jne 0x100aa0f0
cmp dword [ebp - 0x220], 2
jbe 0x100aa0f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x238]
add esp, 0xc
mov ecx, dword [ebp - 0x220]
inc edx
mov eax, edx
jmp 0x100aa0a4
cmp byte [eax], 0x22
je 0x100aa0a9
inc eax
sub ecx, 1
jne 0x100aa09e
test ecx, ecx
je 0x100aa0f0
sub eax, edx
mov ecx, 0x104
cmp eax, ecx
jae 0x100aa0f0
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100aa0f0
push dword [ebp - 0x23c]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x230], 1
push eax
mov ecx, esi
call fcn.100a9d92
mov ebx, eax
test ebx, ebx
js 0x100aa13c
cmp dword [ebp - 0x230], 0
jne 0x100aa13c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x240]
push eax
push edi
push dword [ebp - 0x228]
push ecx
mov ecx, esi
call dword [0x101d880c]
call esi
mov esi, dword [ebp - 0x224]
mov ebx, eax
test ebx, ebx
js 0x100aa13c
push dword [esi + 8]
mov ecx, dword [ebp - 0x228]
mov edx, edi
call fcn.10134a79
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x234]
add eax, edi
mov dword [ebp - 0x228], eax
test ebx, ebx
jns 0x100a9fa8
test ebx, ebx
js 0x100aa19b
mov ecx, dword [esi]
mov edi, 0x10023068
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x240]
push eax
push 2
push edi
push ecx
mov ecx, esi
call dword [0x101d880c]
call esi
mov esi, dword [ebp - 0x224]
mov ebx, eax
test ebx, ebx
js 0x100aa1a1
push dword [esi + 8]
mov ecx, edi
push 2
pop edx
call fcn.10134a79
mov dword [esi + 8], eax
jmp 0x100aa1a1
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x100aa1b8
mov edx, dword [ebp - 0x21c]
mov ecx, eax
call fcn.10134c85
dec dword [esi + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101885f0
leave
ret 8