Function at 0x4380a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00448b10
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor ebx, ebx
push 0x451fe6
mov edi, ecx
mov byte [ebp - 2], 1
mov byte [ebp - 1], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10020], bl
call fcn.0041613a
cmp dword [ebp + 0xc], ebx
je 0x438135
xor ecx, ecx
mov eax, edi
call fcn.004179f6
call fcn.00415ad5
mov esi, dword [ebp + 8]
push eax
lea eax, [esi + 0x3204]
call fcn.004177da
mov edx, eax
cmp edx, ebx
mov dword [ebp - 8], edx
jne 0x438127
push ebx
or ecx, 0xffffffff
mov eax, esi
call fcn.0041eeb7
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, esi
call fcn.0041eee5
jmp 0x438275
mov eax, dword [ebp + 0xc]
test dword [edx + 0x28], eax
jne 0x438162
push ebx
push 0xfffffffffffffffe
pop ecx
jmp 0x43810b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x43815f
mov eax, dword [ebp + 8]
push ebx
push 0xfffffffffffffffd
pop ecx
call fcn.0041eeb7
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
jmp 0x43811d
mov edx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
mov esi, eax
cmp dword [edi], esi
jbe 0x438186
mov ecx, esi
mov eax, edi
call fcn.004179f6
call fcn.00415ad5
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x43818a
or dword [ebp - 0x10], 0xffffffff
lea eax, [esi + 2]
cmp dword [edi], eax
jne 0x4381aa
lea ecx, [esi + 1]
mov eax, edi
call fcn.004179f6
mov ecx, eax
call fcn.00415c1a
test al, al
je 0x4381aa
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0xc]
and eax, 2
push ebx
mov dword [ebp - 0x18], eax
push ebx
je 0x4381bb
push dword [edx]
jmp 0x4381c9
test byte [ebp + 0xc], 4
je 0x4381c6
push dword [edx + 0xc]
jmp 0x4381c9
push dword [ebp - 8]
xor esi, esi
lea edi, [ebp - 0xc]
call fcn.00438448
add esp, 0xc
cmp eax, ebx
jne 0x43820e
push ebx
push 0xfffffffffffffffc
mov eax, dword [ebp + 8]
pop ecx
call fcn.0041eeb7
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0041eee5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x438206
mov esi, dword [ebp - 8]
call fcn.00415154
mov byte [ebp - 2], bl
jmp 0x438379
cmp dword [ebp - 0xc], ebx
jne 0x43827c
cmp dword [ebp + 0xc], ebx
je 0x43827c
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x438242
cmp dword [ebp - 0x1c], 0x103
je 0x43827c
mov eax, dword [ebp + 0xc]
call fcn.00415154
push ebx
push 0xfffffffffffffffb
jmp 0x43824d
mov eax, dword [ebp + 0xc]
call fcn.00415154
push ebx
push 0xfffffffffffffffa
mov eax, dword [ebp + 8]
pop ecx
call fcn.0041eeb7
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0041eee5
cmp byte [ebp - 1], bl
je 0x438275
mov esi, dword [ebp + 0x10]
push ebx
call fcn.00416039
xor al, al
jmp 0x43837c
cmp dword [ebp - 0x10], ebx
jne 0x438298
cmp byte [ebp - 1], bl
je 0x438298
push dword [ebp - 0xc]
mov esi, dword [ebp + 0x10]
call fcn.00416039
mov al, 1
jmp 0x43837c
mov eax, 0xffff
cmp dword [ebp - 0xc], eax
jbe 0x4382a5
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], ebx
jge 0x4382b5
cmp dword [ebp - 0xc], ebx
je 0x4382b2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], ebx
je 0x4382e6
cmp byte [ebp - 1], bl
je 0x4382d0
push dword [ebp - 0x10]
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x438301
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x43834e
test byte [ebp + 0xc], 4
je 0x438328
cmp byte [ebp - 1], bl
je 0x438311
push dword [ebp - 0x10]
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x14]
call fcn.00438448
add esp, 0xc
jmp 0x438354
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
jmp 0x43834e
cmp byte [ebp - 1], bl
je 0x43833c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10020]
push eax
push dword [ebp - 8]
jmp 0x438301
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x10020]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x438360
push ebx
push 0xfffffffffffffff9
jmp 0x4381dd
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
mov byte [ebp + eax - 0x10020], bl
lea eax, [ebp - 0x10020]
push eax
call fcn.0041613a
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 0xc