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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x34], 0
push ebx
push esi
push edi
mov ebx, 0x1007124
mov esi, ebx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
add ecx, 0xc
mov dword [ebp - 0x28], eax
movsd dword es:[edi], dword [esi]
call fcn.010189d5
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [eax], 0
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x22], 0
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102b891
test byte [eax + 0x1c], 1
je 0x102b85d
cmp byte [eax + 0x19], 4
jb 0x102b85d
mov esi, 0x10023f8
push esi
push 0x106
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
jmp 0x102b862
mov esi, 0x10023f8
cmp eax, 0x111024c
je 0x102b896
test byte [eax + 0x1c], 1
je 0x102b896
cmp byte [eax + 0x19], 4
jb 0x102b896
mov ecx, dword [ebp - 0x2c]
push dword [ecx + 0xf0]
push esi
push 0x107
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x102b896
mov esi, 0x10023f8
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.01021745
mov edi, eax
test edi, edi
jl 0x102b97a
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push 0x10031a0
push dword [eax + 0x178]
call fcn.0107ca99
mov edi, eax
test edi, edi
jl 0x102b97a
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x102b9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x102b995
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102b92d
test byte [ecx + 0x1c], 1
je 0x102b92d
cmp byte [ecx + 0x19], 2
jb 0x102b92d
push eax
push dword [ebp - 0x1c]
push esi
push 0x108
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call fcn.0107e9b5
mov edi, eax
test edi, edi
jge 0x102b985
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102be95
test byte [ecx + 0x1c], 1
je 0x102be95
cmp byte [ecx + 0x19], 2
jb 0x102be95
push edi
push dword [ebp - 0x1c]
push esi
push 0x109
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
mov ecx, dword [0x111024c]
jmp 0x102be95
test dword [ebp - 0x34], 0x4000
je 0x102b97a
mov edi, 0x80780067
jmp 0x102b97a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102b9be
test byte [eax + 0x1c], 1
je 0x102b9be
cmp byte [eax + 0x19], 4
jb 0x102b9be
push esi
push 0x10a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov byte [ebp - 0x38], 1
mov byte [ebp - 0x15], 1
jmp 0x102bc34
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call fcn.0107e9b5
cmp eax, edi
mov dword [ebp - 0x20], eax
jge 0x102ba1e
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102be78
test byte [ecx + 0x1c], 1
je 0x102be78
cmp byte [ecx + 0x19], 2
jb 0x102be78
push eax
push dword [ebp - 0x1c]
push esi
push 0x10b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x102be72
test dword [ebp - 0x34], 0x4000
je 0x102ba33
mov dword [ebp - 0x20], 0x80780067
jmp 0x102be72
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x102baa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102ba5f
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ebp - 0x20], 0x80780121
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102be78
test byte [ecx + 0x1c], 1
je 0x102be78
cmp byte [ecx + 0x19], 2
jb 0x102be78
push eax
push dword [ebp - 0x1c]
push esi
push 0x10c
jmp 0x102ba0e
cmp dword [ebp - 0x44], 0x10
jne 0x102baac
cmp dword [ebp - 0x40], 0
je 0x102baf4
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102bbe9
test byte [eax + 0x1c], 1
je 0x102bbe9
cmp byte [eax + 0x19], 2
jb 0x102bbe9
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x1c]
push esi
push 0x10d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01100308
mov eax, dword [0x111024c]
jmp 0x102bbe9
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x102bb62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102bb21
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ebp - 0x20], 0x80780121
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102be78
test byte [ecx + 0x1c], 1
je 0x102be78
cmp byte [ecx + 0x19], 2
jb 0x102be78
push eax
push dword [ebp - 0x1c]
push esi
push 0x10e
jmp 0x102ba0e
push 4
pop ecx
mov edi, ebx
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x102bba2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102bbe4
test byte [eax + 0x1c], 1
je 0x102bbe4
cmp byte [eax + 0x19], 2
jb 0x102bbe4
push dword [ebp - 0x1c]
push 0x10023f8
push 0x10f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x102bbdf
cmp dword [ebp - 0x3c], 0x10
je 0x102bc34
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102bbe4
test byte [eax + 0x1c], 1
je 0x102bbe4
cmp byte [eax + 0x19], 2
jb 0x102bbe4
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push 0x10023f8
push 0x110
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019471
mov eax, dword [0x111024c]
mov esi, 0x10023f8
mov byte [ebp - 0x15], 1
cmp eax, 0x111024c
je 0x102bc11
test byte [eax + 0x1c], 1
je 0x102bc11
cmp byte [eax + 0x19], 4
jb 0x102bc11
push esi
push 0x111
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 0x2c]
push dword [eax + 0xe8]
call fcn.010831a6
push dword [ebp - 0x30]
shr eax, 9
and al, 1
mov byte [ebp - 0x38], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x30], 0xffffffff
mov byte [ebp - 0x21], 1
mov ebx, 0x1400000
cmp byte [ebp - 0x15], 0
je 0x102bcbd
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
call fcn.0101b705
test eax, eax
jl 0x102bdf6
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0102ae63
test eax, eax
jge 0x102bcbd
mov edi, dword [ebp - 0x28]
mov dword [edi], eax
mov ecx, dword [0x111024c]
mov esi, 0x111024c
cmp ecx, esi
je 0x102bcb4
test byte [ecx + 0x1c], 1
je 0x102bcb4
cmp byte [ecx + 0x19], 3
jb 0x102bcb4
push eax
push dword [ebp - 0x1c]
push 0x10023f8
push 0x113
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
mov ecx, dword [0x111024c]
mov dword [ebp - 0x20], 0x80780122
jmp 0x102bd0e
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0102b4d4
mov dword [ebp - 0x20], eax
test eax, eax
jge 0x102bd03
mov ecx, dword [0x111024c]
mov esi, 0x111024c
cmp ecx, esi
je 0x102bd0e
test byte [ecx + 0x1c], 1
je 0x102bd0e
cmp byte [ecx + 0x19], 3
jb 0x102bd0e
push eax
push 0x10023f8
push 0x114
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
jmp 0x102bd08
mov esi, 0x111024c
mov ecx, dword [0x111024c]
cmp byte [ebp - 0x22], 0
jne 0x102bd9f
mov eax, 0x80070070
cmp dword [ebp - 0x20], eax
je 0x102bd26
cmp dword [edi], eax
jne 0x102bd9f
cmp ecx, esi
je 0x102bd4e
test byte [ecx + 0x1c], 1
je 0x102bd4e
cmp byte [ecx + 0x19], 4
jb 0x102bd4e
push 0
push ebx
push 0x10023f8
push 0x115
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010194e4
mov ecx, dword [ebp - 0x2c]
push 0
push ebx
call fcn.0101baa2
test eax, eax
jl 0x102be3a
and dword [ebp - 0x20], 0
and dword [edi], 0
mov ecx, dword [0x111024c]
cmp ecx, esi
je 0x102bd99
test byte [ecx + 0x1c], 1
je 0x102bd99
cmp byte [ecx + 0x19], 4
jb 0x102bd99
push 0x10023f8
push 0x117
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101894a
mov ecx, dword [0x111024c]
mov byte [ebp - 0x22], 1
jmp 0x102bda3
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
jne 0x102bc3d
cmp dword [ebp - 0x20], 0
jge 0x102be68
cmp ecx, 0x111024c
je 0x102be78
test byte [ecx + 0x1c], 1
je 0x102be78
cmp byte [ecx + 0x19], 2
jb 0x102be78
mov eax, dword [ebp - 0x28]
push dword [eax]
push dword [ebp - 0x20]
push 0x10023f8
push 0x118
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01083f04
jmp 0x102be72
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102be31
test byte [ecx + 0x1c], 1
je 0x102be31
cmp byte [ecx + 0x19], 2
jb 0x102be31
push eax
push 0x10023f8
push 0x112
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
mov ecx, dword [0x111024c]
mov dword [ebp - 0x20], 0x80780122
jmp 0x102be78
mov ecx, dword [0x111024c]
cmp ecx, esi
je 0x102be78
test byte [ecx + 0x1c], 1
je 0x102be78
cmp byte [ecx + 0x19], 2
jb 0x102be78
push eax
push 0x10023f8
push 0x116
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
jmp 0x102be72
mov edi, dword [ebp - 0x48]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [0x111024c]
cmp dword [ebp - 0x30], 0xffffffff
je 0x102be8d
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x111024c]
mov edi, dword [ebp - 0x20]
mov esi, 0x10023f8
cmp dword [ebp - 0x1c], 0
je 0x102beaa
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x111024c]
test edi, edi
jge 0x102beda
cmp ecx, 0x111024c
je 0x102beff
test byte [ecx + 0x1c], 1
je 0x102beda
cmp byte [ecx + 0x19], 2
jb 0x102beda
push edi
push esi
push 0x119
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x102beff
test byte [ecx + 0x1c], 1
je 0x102beff
cmp byte [ecx + 0x19], 4
jb 0x102beff
push esi
push 0x11a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 8