Function at 0x1004fbd
Capabilities:
Create process on windows
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x2d8
push esi
push dword [ebp + 0x78]
xor esi, esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x68], esi
call fcn.0100383f
test eax, eax
je 0x10051c7
push ebx
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x5c], ebx
je 0x10051be
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp + 0x64]
push eax
push 0x22
lea eax, [ebp + 0x38]
push eax
push ebx
call edi
test eax, eax
je 0x10051b6
cmp dword [ebp + 0x64], 0x22
jne 0x10051b6
cmp word [ebp + 0x4e], si
jne 0x1005068
push dword [ebp + 0x78]
lea edi, [ebp - 0x44]
call sub.SHELL32.dll_Ordinal_34
push dword [ebp + 0x78]
mov ebx, eax
call dword [sym.imp.SHELL32.dll_Ordinal_31]
cmp ebx, esi
je 0x1005060
cmp eax, esi
je 0x1005060
cmp ebx, eax
je 0x1005060
mov cx, word [ebx]
mov word [edi], cx
inc edi
inc edi
inc ebx
inc ebx
jne 0x100504c
mov ebx, dword [ebp + 0x5c]
mov word [edi], si
jmp 0x1005098
movzx eax, word [ebp + 0x4e]
push esi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 0x64]
push eax
push 0x1f
lea eax, [ebp - 0x64]
push eax
push ebx
call edi
push 0x1f
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x44]
push eax
call fcn.010049ab
test eax, eax
lea eax, [ebp - 0x26c]
je 0x10050cc
xor edi, edi
inc edi
cmp dword [0x100923c], esi
mov dword [ebp + 0x68], edi
push edi
je 0x10050c8
push 0x18
push eax
push dword [ebp + 0x74]
call dword [sym.imp.SHELL32.dll_Ordinal_175]
jmp 0x10050e7
push 7
jmp 0x10050bc
push dword [ebp + 0x78]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x74]
call fcn.01003afa
test eax, eax
je 0x10051b6
xor edi, edi
inc edi
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x3e]
push dword [ebp + 0x58]
push ebx
call fcn.0100414d
test eax, eax
jne 0x100511d
test byte [ebp + 0x7c], 2
je 0x100511d
push 0x30
push esi
push 0xcf
push 0xca
push dword [ebp + 0x74]
call fcn.01006a4e
push dword [ebp + 0x3e]
push ebx
call fcn.01003c43
call fcn.01003f0f
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
test eax, eax
jne 0x1005141
call fcn.01003f4e
call fcn.01003f7e
lea eax, [ebp - 0x26c]
push eax
call fcn.01004af9
test byte [ebp + 0x7c], 8
je 0x100515f
call fcn.01004eab
jmp 0x1005173
movzx eax, word [ebp + 0x58]
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x26c]
push eax
call fcn.0100468a
test byte [ebp + 0x7c], 4
je 0x10051b3
mov eax, dword [ebp + 0x74]
mov dword [ebp + 4], eax
lea eax, [ebp - 0x26c]
mov dword [ebp + 0xc], eax
mov eax, dword [0x100924c]
mov dword [ebp + 0x1c], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0x3c
mov dword [ebp], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x18], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp + 0x60], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
call fcn.01003865
mov eax, dword [ebp + 0x60]
pop ebx
pop esi
add ebp, 0x6c
leave
ret 0xc