Function at 0x1000d923
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x10035a67
call fcn.1003265b
xor esi, esi
mov dword [ebp - 0x30], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x1003fe10]
mov ecx, 0x1003fe10
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0xc]
push eax
call fcn.1001e8e8
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10028460
cmp edi, esi
je 0x1000da38
mov eax, dword [0x1003fe10]
mov ecx, 0x1003fe10
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
mov eax, dword [edi - 8]
mov ecx, ebx
sub ecx, dword [edi - 4]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
jge 0x1000d9b2
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.1002827a
mov edi, dword [ebp - 0x18]
push ebx
push edi
push dword [0x10042f90]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.1001f1a2
lea eax, [ebp - 0x20]
push eax
call fcn.1001e8e8
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.1001f25e
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 8]
inc ecx
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x1000da08
mov eax, ebx
lea ecx, [ebp - 0x14]
call fcn.1002827a
mov edx, dword [ebp - 0x14]
push esi
push dword [ebp - 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or eax, 0xffffffff
lea esi, [ebp - 0x14]
call fcn.1001f1a2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10028460
lea eax, [edi - 0x10]
call fcn.10028460
xor ebx, ebx
inc ebx
xor esi, esi
jmp 0x1000da5e
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.1001e8e8
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1001ea8d
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10028460
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
push esi
push 0x80
push 3
push ebx
push SysReAllocStringLen
mov byte [ebp - 4], 6
push dword [ebp - 0x14]
lea edi, [ebp - 0x2c]
call fcn.10011003
mov edi, eax
cmp edi, esi
jge 0x1000dab4
push edi
push dword [ebp - 0x14]
push 0x10003c08
push esi
mov esi, dword [ebp + 0x10]
call fcn.1000b93e
add esp, 0x10
mov dword [ebp - 0x24], 0x10006e14
mov dword [ebp - 0x20], edi
push 0x100382d8
lea eax, [ebp - 0x24]
push eax
call fcn.10011003
push 2
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10011003
push ebx
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push esi
push esi
mov dword [ebp - 0x3c], eax
push 2
lea eax, [ebp - 0x2c]
push eax
call fcn.10011003
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffffe
shr eax, 1
jns 0x1000dafa
push 0x80070057
call fcn.10011003
cmp eax, esi
jne 0x1000db05
mov edi, dword [ebp + 8]
mov dword [edi], esi
jmp 0x1000db20
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, esi
jne 0x1000db1d
push 0x8007000e
jmp 0x1000daf5
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi]
push esi
lea edx, [ebp - 0x34]
push edx
add eax, 0xfffffffe
push eax
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, esi
jne 0x1000db4b
call fcn.10027f08
mov ebx, eax
jmp 0x1000db4d
xor ebx, ebx
cmp ebx, esi
jge 0x1000dbad
mov eax, dword [0x1003fe10]
mov ecx, 0x1003fe10
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x10003c70
push eax
call fcn.10011003
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add esp, 0xc
push dword [ebp - 0x20]
mov ecx, edi
push esi
call dword [eax + 4]
push dword [ebp - 0x20]
mov eax, dword [edi]
push 7
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 0x1c], 0x10006e14
mov dword [ebp - 0x18], ebx
push 0x100382d8
lea eax, [ebp - 0x1c]
jmp 0x1000daae
cmp dword [ebp - 0x2c], esi
je 0x1000dbbb
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10028460
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10028460
mov eax, edi
call fcn.10032709
ret 0xc