Function at 0x100a9c50
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f5e0e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2ac], 0
push 0
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10268bc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1020b4d4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100aa4df
mov esi, dword [ebp - 0x2c0]
test esi, esi
je 0x100a9d72
cmp dword [esi], 0
je 0x100a9d67
push 0x10207128
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100a9d34
or eax, 0xffffffff
jmp 0x100a9d91
push 0x1020b4b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100a9d6d
push 0
push 0
push dword [esi]
lea ecx, [ebp - 0x218]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call eax
jmp 0x100a9d91
cmp dword [esi + 4], 0
jne 0x100a9d72
or eax, 0xffffffff
jmp 0x100a9d91
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100a9dab
call fcn.100a9450
test eax, eax
jne 0x100aa4df
mov eax, dword [ebp - 0x2c4]
jmp 0x100a9db1
mov dword [ebp - 0x2c4], eax
lea ecx, [ebp - 0x2b8]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x2cc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x2bc], edi
cmp edi, 0xffffffff
jne 0x100a9de6
call fcn.100a9450
test eax, eax
js 0x100a9e03
mov edi, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2c8], eax
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100aa51c
jmp 0x100a9e0b
mov edi, dword [ebp - 0x2cc]
jmp 0x100a9df2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x2a4], esi
mov byte [ebp - 4], 3
test edi, edi
js 0x100aa526
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x100a9e4a
push edi
lea ecx, [ebp - 0x2a4]
call fcn.1000b310
mov esi, dword [ebp - 0x2a4]
cmp edi, dword [esi - 8]
jg 0x100aa526
mov dword [esi - 0xc], edi
lea ecx, [ebp - 0x230]
mov byte [edi + esi], 0
push 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x10200ce4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10014280
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2b8]
push 0
push eax
push 0
push dword [ebp - 0x2c4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2bc], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100a9ecb
call fcn.100a9450
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x100a9ee6
push edi
lea ecx, [ebp - 0x2a4]
call fcn.1000b290
mov esi, dword [ebp - 0x2a4]
push 0
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0
push eax
push edi
push esi
push dword [ebp - 0x2c4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100a9f14
call fcn.100a9450
test eax, eax
jmp 0x100a9f1a
cmp dword [ebp - 0x298], edi
jne 0x100aa297
push 0x10200ce4
push 0x1020b4f0
lea ecx, [ebp - 0x2a4]
call fcn.100aa5b0
mov esi, dword [ebp - 0x2a4]
xor edi, edi
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x2a8], 1
mov eax, dword [esi - 0xc]
cdq
sub eax, edx
sar eax, 1
cmp eax, 1
jl 0x100aa297
mov dword [ebp - 0x298], edi
mov eax, esi
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a9f98
sub eax, edx
lea ecx, [ebp - 0x278]
push eax
push esi
call fcn.10014280
mov byte [ebp - 4], 5
lea eax, [ebp - 0x290]
push 2
push dword [ebp - 0x298]
lea ecx, [ebp - 0x278]
push eax
call fcn.100aa9d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x260]
push 2
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
push 0x1020b4f4
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.10014280
mov byte [ebp - 4], 8
lea eax, [ebp - 0x290]
cmp dword [ebp - 0x27c], 0x10
lea ecx, [ebp - 0x260]
push dword [ebp - 0x280]
cmovae eax, dword [ebp - 0x290]
push eax
call fcn.10013f70
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x234], 0
push ecx
movups xmm0, xmmword [eax]
push 1
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [eax + 0x10]
or dword [ebp - 0x2ac], 1
movq qword [ebp - 0x238], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExA]
and dword [ebp - 0x2ac], 0xfffffffe
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x248]
call fcn.10007910
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x260]
call fcn.10007910
mov al, byte [edi + 0x1020b4cc]
xor al, byte [ebp - 0x2c8]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 0x291], al
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x2b4], edx
cmp ecx, edx
jae 0x100aa121
lea eax, [ecx + 1]
cmp edx, 0x10
mov dl, byte [ebp - 0x291]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x100aa241
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x100aa53f
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x2b8], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x100aa14e
mov edi, SysReAllocString
jmp 0x100aa16c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x100aa164
mov edi, SysReAllocString
jmp 0x100aa16c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x230]
call fcn.10013f10
cmp dword [ebp - 0x2b4], 0x10
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], edi
jb 0x100aa209
push dword [ebp - 0x29c]
mov edi, dword [ebp - 0x230]
push edi
push eax
call fcn.1019fdb0
mov ecx, dword [ebp - 0x2b0]
add esp, 0xc
mov eax, dword [ebp - 0x29c]
mov dl, byte [ebp - 0x291]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
mov ecx, dword [ebp - 0x2b4]
inc ecx
cmp ecx, 0x1000
jb 0x100aa1f1
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x100aa53a
mov edi, edx
push ecx
push edi
call fcn.100cff81
mov eax, dword [ebp - 0x2b0]
add esp, 8
mov dword [ebp - 0x230], eax
jmp 0x100aa23b
mov edi, dword [ebp - 0x29c]
lea ecx, [ebp - 0x230]
push edi
push ecx
push eax
call fcn.1019fdb0
mov ecx, dword [ebp - 0x2b0]
add esp, 0xc
mov dl, byte [ebp - 0x291]
lea eax, [ecx + edi]
mov byte [eax], dl
mov byte [eax + 1], 0
mov dword [ebp - 0x230], ecx
mov edi, dword [ebp - 0x2a0]
inc edi
and edi, 0x80000007
jns 0x100aa24f
dec edi
or edi, 0xfffffff8
inc edi
mov dword [ebp - 0x2a0], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x290]
call fcn.10007910
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.10007910
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp - 0x2a8]
add dword [ebp - 0x298], 2
inc ecx
cdq
sub eax, edx
mov dword [ebp - 0x2a8], ecx
sar eax, 1
cmp ecx, eax
jle 0x100a9f64
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100aa530
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
push 0
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.100d1710
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x14], 8
jb 0x100aa2ee
mov edx, dword [edx]
test edx, edx
jne 0x100aa2f6
xor ecx, ecx
jmp 0x100aa30f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100aa300
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x298]
call fcn.10006ab0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x290]
call fcn.10003a70
lea ecx, [ebp - 0x298]
call fcn.100aa550
mov eax, dword [0x1025e248]
lea ecx, [ebp - 0x2a0]
mov edi, dword [ebp - 0x298]
push edi
mov dword [ebp - 0x2b8], eax
call fcn.10003660
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a8], 0
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x2b4], eax
test eax, eax
jle 0x100aa45b
nop dword [eax + eax]
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.100aa7e0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x29c]
cmp dword [eax - 0xc], 0
je 0x100aa439
mov edx, dword [ebp - 0x2d0]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x2c8], ecx
cmp dword [edx + 8], ecx
je 0x100aa3f4
add eax, 0xfffffff0
mov dword [ebp - 0x2b0], ecx
push eax
call fcn.100041a0
mov ecx, dword [ebp - 0x2c8]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2d0]
add dword [ecx + 4], 4
jmp 0x100aa403
lea eax, [ebp - 0x29c]
push eax
push ecx
mov ecx, edx
call fcn.10007500
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100aa425
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2b4]
cmp dword [ebp - 0x2a8], eax
jl 0x100aa380
jmp 0x100aa45b
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100aa45b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100aa47d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100aa49b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi - 8]
push esi
call fcn.101a8976
add esp, 8
test eax, eax
js 0x100aa526
cmp eax, dword [esi - 8]
jg 0x100aa526
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.10007910
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100aa4df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c4]
test eax, eax
je 0x100aa501
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
push 0x80070057
call fcn.10004040
push 0x80004005
call fcn.10004040
call fcn.101a3dde
call fcn.10007010
int3