Function at 0x10035b08
Capabilities:
Read file on windows

Disassembly:
push 0x38
mov eax, 0x100a8530
call fcn.100a5688
mov dword [ebp - 0x20], edx
mov ebx, ecx
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 1
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x1c]
call fcn.10091a7b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.1006f4e2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1008ebf5
test esi, esi
je 0x10035be8
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x14]
call fcn.10091a7b
mov byte [ebp - 4], 3
xor ecx, ecx
mov esi, dword [ebp - 0x14]
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10035b9d
push edx
lea ecx, [ebp - 0x14]
call fcn.10091a7b
mov esi, dword [ebp - 0x14]
mov edx, 0x104
push edx
push esi
push dword [0x100cfd38]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.10091a7b
push esi
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.1006e86f
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.10091a7b
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
lea ecx, [esi - 0x10]
jmp 0x10035c09
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.1006f4e2
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.10091a7b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1008ebf5
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
push ecx
push edi
push 0x80
push 3
push 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
mov esi, dword [ebp - 0x1c]
push SysReAllocString
push esi
call fcn.10091a7b
mov edi, eax
test edi, edi
jns 0x10035c72
push edi
push esi
push 0x10009460
push 0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push 0x10009444
call fcn.10091a7b
push eax
call fcn.1002e335
add esp, 0x18
push edi
lea ecx, [ebp - 0x24]
call fcn.10091a7b
push 0x100c56e8
mov eax, ecx
push eax
call fcn.10091a7b
push 2
xor edi, edi
lea ecx, [ebp - 0x38]
push edi
push edi
call fcn.10091a7b
push 1
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], edi
push eax
push edi
mov dword [ebp - 0x40], edi
mov edi, dword [ebp - 0x38]
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0
push 2
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], eax
call fcn.10091a7b
mov eax, dword [ebp - 0x44]
lea ecx, [eax - 2]
shr ecx, 1
jne 0x10035cb7
and dword [ebx], 0
jmp 0x10035cd3
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
test eax, eax
jne 0x10035cd0
push 0x8007000e
call fcn.10091a7b
mov eax, dword [ebp - 0x44]
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0
push ecx
add eax, 0xfffffffe
mov dword [ebp - 0x28], 1
push eax
push dword [ebx]
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x10035cfc
call fcn.1008e258
jmp 0x10035cfe
xor eax, eax
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x10035d60
lea ecx, [ebp - 0x18]
call fcn.1008eab0
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push 0x100094c8
push eax
call fcn.10091a7b
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.1006e4b8
mov ebx, dword [ebp - 0x20]
mov edi, eax
push edi
push 0
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push edi
push 7
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
push dword [ebp - 0x14]
jmp 0x10035c5d
test edi, edi
je 0x10035d6b
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov eax, ebx
call fcn.100a5651
ret 4