Function at 0x4397c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1001c
call fcn.0044f570
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor ebx, ebx
push 0x459596
mov byte [ebp - 2], 1
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1001c], bl
call fcn.00415109
cmp dword [ebp + 0x10], ebx
je 0x439854
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0xc], ebx
ja 0x439807
lea eax, [esi + 0x18]
jmp 0x43980c
mov eax, dword [esi + 8]
mov eax, dword [eax]
call fcn.00414a92
mov edi, dword [ebp + 8]
push eax
add edi, 0x884
call fcn.0043974f
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x439847
push ebx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.0041da7b
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
call fcn.0041daa2
jmp 0x439981
mov ecx, dword [ebp + 0x10]
test dword [eax + 0x28], ecx
jne 0x43986d
push ebx
push 0xfffffffffffffffe
jmp 0x439867
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x43986a
push ebx
push 0xfffffffffffffffd
pop eax
jmp 0x43982b
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
mov edi, eax
cmp dword [esi + 0xc], edi
jbe 0x43988f
mov ecx, edi
mov eax, esi
call fcn.0041dbb0
call fcn.00414a92
mov dword [ebp + 0xc], eax
jmp 0x439893
or dword [ebp + 0xc], 0xffffffff
lea eax, [edi + 2]
cmp dword [esi + 0xc], eax
jne 0x4398b4
lea ecx, [edi + 1]
mov eax, esi
call fcn.0041dbb0
mov ecx, eax
call fcn.00414bf0
test al, al
je 0x4398b4
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
and eax, 2
push ebx
mov dword [ebp - 0x18], eax
push ebx
je 0x4398c8
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x4398d9
test byte [ebp + 0x10], 4
je 0x4398d6
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
jmp 0x4398d9
push dword [ebp - 8]
xor esi, esi
lea edi, [ebp - 0xc]
call fcn.00439b6a
add esp, 0xc
cmp eax, ebx
jne 0x43991c
push ebx
push 0xfffffffffffffffc
mov ecx, dword [ebp + 8]
pop eax
call fcn.0041da7b
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
call fcn.0041daa2
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x439914
mov esi, dword [ebp - 8]
call fcn.00414186
mov byte [ebp - 2], bl
jmp 0x439a85
cmp dword [ebp - 0xc], ebx
jne 0x439988
cmp dword [ebp + 0x10], ebx
je 0x439988
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x439950
cmp dword [ebp - 0x14], 0x103
je 0x439988
mov eax, dword [ebp + 0x10]
call fcn.00414186
push ebx
push 0xfffffffffffffffb
jmp 0x43995b
mov eax, dword [ebp + 0x10]
call fcn.00414186
push ebx
push 0xfffffffffffffffa
mov ecx, dword [ebp + 8]
pop eax
call fcn.0041da7b
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
call fcn.0041daa2
cmp byte [ebp - 1], bl
je 0x439981
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00415008
xor al, al
jmp 0x439a88
cmp dword [ebp + 0xc], ebx
jne 0x4399a4
cmp byte [ebp - 1], bl
je 0x4399a4
push dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
call fcn.00415008
mov al, 1
jmp 0x439a88
mov eax, 0xffff
cmp dword [ebp - 0xc], eax
jbe 0x4399b1
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], ebx
jge 0x4399c1
cmp dword [ebp - 0xc], ebx
je 0x4399be
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x18], ebx
je 0x4399f2
cmp byte [ebp - 1], bl
je 0x4399dc
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x439a0d
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x439a5a
test byte [ebp + 0x10], 4
je 0x439a34
cmp byte [ebp - 1], bl
je 0x439a1d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x10]
call fcn.00439b6a
add esp, 0xc
jmp 0x439a60
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
jmp 0x439a5a
cmp byte [ebp - 1], bl
je 0x439a48
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
push dword [ebp - 8]
jmp 0x439a0d
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
jne 0x439a6c
push ebx
push 0xfffffffffffffff9
jmp 0x4398ed
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x14]
mov byte [ebp + eax - 0x1001c], bl
lea eax, [ebp - 0x1001c]
push eax
call fcn.00415109
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 0x10