Function at 0x102b6f2
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 [0x111127c]
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, 0x100cbcc
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.01018a22
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 [0x111124c]
cmp eax, 0x111124c
je 0x102b7b8
test byte [eax + 0x1c], 1
je 0x102b784
cmp byte [eax + 0x19], 4
jb 0x102b784
mov esi, 0x10023f8
push esi
push 0x107
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
jmp 0x102b789
mov esi, 0x10023f8
cmp eax, 0x111124c
je 0x102b7bd
test byte [eax + 0x1c], 1
je 0x102b7bd
cmp byte [eax + 0x19], 4
jb 0x102b7bd
mov ecx, dword [ebp - 0x2c]
push dword [ecx + 0xf0]
push esi
push 0x108
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x102b7bd
mov esi, 0x10023f8
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.010217cc
mov edi, eax
test edi, edi
jl 0x102b8a1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push 0x1003198
push dword [eax + 0x178]
call fcn.0107c90e
mov edi, eax
test edi, edi
jl 0x102b8a1
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 0x102b8f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x102b8bc
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102b854
test byte [ecx + 0x1c], 1
je 0x102b854
cmp byte [ecx + 0x19], 2
jb 0x102b854
push eax
push dword [ebp - 0x1c]
push esi
push 0x109
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call fcn.0107e903
mov edi, eax
test edi, edi
jge 0x102b8ac
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102bdbc
test byte [ecx + 0x1c], 1
je 0x102bdbc
cmp byte [ecx + 0x19], 2
jb 0x102bdbc
push edi
push dword [ebp - 0x1c]
push esi
push 0x10a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
mov ecx, dword [0x111124c]
jmp 0x102bdbc
test dword [ebp - 0x34], 0x4000
je 0x102b8a1
mov edi, 0x80780067
jmp 0x102b8a1
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102b8e5
test byte [eax + 0x1c], 1
je 0x102b8e5
cmp byte [eax + 0x19], 4
jb 0x102b8e5
push esi
push 0x10b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov byte [ebp - 0x38], 1
mov byte [ebp - 0x15], 1
jmp 0x102bb5b
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
call fcn.0107e903
cmp eax, edi
mov dword [ebp - 0x20], eax
jge 0x102b945
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102bd9f
test byte [ecx + 0x1c], 1
je 0x102bd9f
cmp byte [ecx + 0x19], 2
jb 0x102bd9f
push eax
push dword [ebp - 0x1c]
push esi
push 0x10c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x102bd99
test dword [ebp - 0x34], 0x4000
je 0x102b95a
mov dword [ebp - 0x20], 0x80780067
jmp 0x102bd99
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 0x102b9c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102b986
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ebp - 0x20], 0x80780121
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102bd9f
test byte [ecx + 0x1c], 1
je 0x102bd9f
cmp byte [ecx + 0x19], 2
jb 0x102bd9f
push eax
push dword [ebp - 0x1c]
push esi
push 0x10d
jmp 0x102b935
cmp dword [ebp - 0x44], 0x10
jne 0x102b9d3
cmp dword [ebp - 0x40], 0
je 0x102ba1b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102bb10
test byte [eax + 0x1c], 1
je 0x102bb10
cmp byte [eax + 0x19], 2
jb 0x102bb10
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x1c]
push esi
push 0x10e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019e9a
mov eax, dword [0x111124c]
jmp 0x102bb10
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 0x102ba89
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102ba48
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ebp - 0x20], 0x80780121
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102bd9f
test byte [ecx + 0x1c], 1
je 0x102bd9f
cmp byte [ecx + 0x19], 2
jb 0x102bd9f
push eax
push dword [ebp - 0x1c]
push esi
push 0x10f
jmp 0x102b935
push 4
pop ecx
mov edi, ebx
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x102bac9
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102bb0b
test byte [eax + 0x1c], 1
je 0x102bb0b
cmp byte [eax + 0x19], 2
jb 0x102bb0b
push dword [ebp - 0x1c]
push 0x10023f8
push 0x110
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x102bb06
cmp dword [ebp - 0x3c], 0x10
je 0x102bb5b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102bb0b
test byte [eax + 0x1c], 1
je 0x102bb0b
cmp byte [eax + 0x19], 2
jb 0x102bb0b
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push 0x10023f8
push 0x111
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010194be
mov eax, dword [0x111124c]
mov esi, 0x10023f8
mov byte [ebp - 0x15], 1
cmp eax, 0x111124c
je 0x102bb38
test byte [eax + 0x1c], 1
je 0x102bb38
cmp byte [eax + 0x19], 4
jb 0x102bb38
push esi
push 0x112
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 0x2c]
push dword [eax + 0xe8]
call fcn.01083215
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 0x102bbe4
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
call fcn.0101b7c8
test eax, eax
jl 0x102bd1d
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.0102ad8a
test eax, eax
jge 0x102bbe4
mov edi, dword [ebp - 0x28]
mov dword [edi], eax
mov ecx, dword [0x111124c]
mov esi, 0x111124c
cmp ecx, esi
je 0x102bbdb
test byte [ecx + 0x1c], 1
je 0x102bbdb
cmp byte [ecx + 0x19], 3
jb 0x102bbdb
push eax
push dword [ebp - 0x1c]
push 0x10023f8
push 0x114
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
mov ecx, dword [0x111124c]
mov dword [ebp - 0x20], 0x80780122
jmp 0x102bc35
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0102b3fb
mov dword [ebp - 0x20], eax
test eax, eax
jge 0x102bc2a
mov ecx, dword [0x111124c]
mov esi, 0x111124c
cmp ecx, esi
je 0x102bc35
test byte [ecx + 0x1c], 1
je 0x102bc35
cmp byte [ecx + 0x19], 3
jb 0x102bc35
push eax
push 0x10023f8
push 0x115
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
jmp 0x102bc2f
mov esi, 0x111124c
mov ecx, dword [0x111124c]
cmp byte [ebp - 0x22], 0
jne 0x102bcc6
mov eax, 0x80070070
cmp dword [ebp - 0x20], eax
je 0x102bc4d
cmp dword [edi], eax
jne 0x102bcc6
cmp ecx, esi
je 0x102bc75
test byte [ecx + 0x1c], 1
je 0x102bc75
cmp byte [ecx + 0x19], 4
jb 0x102bc75
push 0
push ebx
push 0x10023f8
push 0x116
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019531
mov ecx, dword [ebp - 0x2c]
push 0
push ebx
call fcn.0101bb65
test eax, eax
jl 0x102bd61
and dword [ebp - 0x20], 0
and dword [edi], 0
mov ecx, dword [0x111124c]
cmp ecx, esi
je 0x102bcc0
test byte [ecx + 0x1c], 1
je 0x102bcc0
cmp byte [ecx + 0x19], 4
jb 0x102bcc0
push 0x10023f8
push 0x118
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189d0
mov ecx, dword [0x111124c]
mov byte [ebp - 0x22], 1
jmp 0x102bcca
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
jne 0x102bb64
cmp dword [ebp - 0x20], 0
jge 0x102bd8f
cmp ecx, 0x111124c
je 0x102bd9f
test byte [ecx + 0x1c], 1
je 0x102bd9f
cmp byte [ecx + 0x19], 2
jb 0x102bd9f
mov eax, dword [ebp - 0x28]
push dword [eax]
push dword [ebp - 0x20]
push 0x10023f8
push 0x119
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0109ba57
jmp 0x102bd99
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102bd58
test byte [ecx + 0x1c], 1
je 0x102bd58
cmp byte [ecx + 0x19], 2
jb 0x102bd58
push eax
push 0x10023f8
push 0x113
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
mov ecx, dword [0x111124c]
mov dword [ebp - 0x20], 0x80780122
jmp 0x102bd9f
mov ecx, dword [0x111124c]
cmp ecx, esi
je 0x102bd9f
test byte [ecx + 0x1c], 1
je 0x102bd9f
cmp byte [ecx + 0x19], 2
jb 0x102bd9f
push eax
push 0x10023f8
push 0x117
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
jmp 0x102bd99
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 [0x111124c]
cmp dword [ebp - 0x30], 0xffffffff
je 0x102bdb4
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x111124c]
mov edi, dword [ebp - 0x20]
mov esi, 0x10023f8
cmp dword [ebp - 0x1c], 0
je 0x102bdd1
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x111124c]
test edi, edi
jge 0x102be01
cmp ecx, 0x111124c
je 0x102be26
test byte [ecx + 0x1c], 1
je 0x102be01
cmp byte [ecx + 0x19], 2
jb 0x102be01
push edi
push esi
push 0x11a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x102be26
test byte [ecx + 0x1c], 1
je 0x102be26
cmp byte [ecx + 0x19], 4
jb 0x102be26
push esi
push 0x11b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8