Function at 0x10035968
Capabilities:
Read file on windows

Disassembly:
push 0x38
mov eax, 0x100a7d20
call fcn.100a4ea8
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.1008e1f3
push eax
lea ecx, [ebp - 0x1c]
call fcn.1008df96
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.1006f372
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1008e3f5
test esi, esi
je 0x10035a48
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008df96
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 0x100359fd
push edx
lea ecx, [ebp - 0x14]
call fcn.1008de52
mov esi, dword [ebp - 0x14]
mov edx, 0x104
push edx
push esi
push dword [0x100ced38]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.1008db88
push esi
lea ecx, [ebp - 0x18]
call fcn.1006f372
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.1006e6ff
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.1006e7cf
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea ecx, [esi - 0x10]
jmp 0x10035a69
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.1006f372
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.1006f1e0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1008e3f5
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 SysReAllocStringLen
push esi
call fcn.10032b45
mov edi, eax
test edi, edi
jns 0x10035ad2
push edi
push esi
push 0x10009460
push 0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push 0x10009444
call fcn.1002e18a
push eax
call fcn.1002e198
add esp, 0x18
push edi
lea ecx, [ebp - 0x24]
call fcn.10032d93
push 0x100c4d00
mov eax, ecx
push eax
call fcn.1009378c
push 2
xor edi, edi
lea ecx, [ebp - 0x38]
push edi
push edi
call fcn.10032bc6
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.10032bc6
mov eax, dword [ebp - 0x44]
lea ecx, [eax - 2]
shr ecx, 1
jne 0x10035b17
and dword [ebx], 0
jmp 0x10035b33
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
test eax, eax
jne 0x10035b30
push 0x8007000e
call fcn.1008e2c4
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 0x10035b5c
call fcn.1008da58
jmp 0x10035b5e
xor eax, eax
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x10035bc0
lea ecx, [ebp - 0x18]
call fcn.1008e2b0
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push 0x100094c8
push eax
call fcn.1008dbf3
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.1006e348
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 [0x100cf608]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push edi
push 7
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, ebx
call esi
push dword [ebp - 0x14]
jmp 0x10035abd
test edi, edi
je 0x10035bcb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov eax, ebx
call fcn.100a4e71
ret 4