Function at 0x4397f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1001c
call fcn.0044f5b0
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.0041512a
cmp dword [ebp + 0x10], ebx
je 0x439887
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0xc], ebx
ja 0x43983a
lea eax, [esi + 0x18]
jmp 0x43983f
mov eax, dword [esi + 8]
mov eax, dword [eax]
call fcn.00414ab3
mov edi, dword [ebp + 8]
push eax
add edi, 0x884
call fcn.00439782
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x43987a
push ebx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.0041da9c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
call fcn.0041dac3
jmp 0x4399b4
mov ecx, dword [ebp + 0x10]
test dword [eax + 0x28], ecx
jne 0x4398a0
push ebx
push 0xfffffffffffffffe
jmp 0x43989a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x43989d
push ebx
push 0xfffffffffffffffd
pop eax
jmp 0x43985e
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
mov edi, eax
cmp dword [esi + 0xc], edi
jbe 0x4398c2
mov ecx, edi
mov eax, esi
call fcn.0041dbd1
call fcn.00414ab3
mov dword [ebp + 0xc], eax
jmp 0x4398c6
or dword [ebp + 0xc], 0xffffffff
lea eax, [edi + 2]
cmp dword [esi + 0xc], eax
jne 0x4398e7
lea ecx, [edi + 1]
mov eax, esi
call fcn.0041dbd1
mov ecx, eax
call fcn.00414c11
test al, al
je 0x4398e7
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
and eax, 2
push ebx
mov dword [ebp - 0x18], eax
push ebx
je 0x4398fb
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x43990c
test byte [ebp + 0x10], 4
je 0x439909
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
jmp 0x43990c
push dword [ebp - 8]
xor esi, esi
lea edi, [ebp - 0xc]
call fcn.00439b9d
add esp, 0xc
cmp eax, ebx
jne 0x43994f
push ebx
push 0xfffffffffffffffc
mov ecx, dword [ebp + 8]
pop eax
call fcn.0041da9c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
call fcn.0041dac3
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x439947
mov esi, dword [ebp - 8]
call fcn.00414137
mov byte [ebp - 2], bl
jmp 0x439ab8
cmp dword [ebp - 0xc], ebx
jne 0x4399bb
cmp dword [ebp + 0x10], ebx
je 0x4399bb
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 0x439983
cmp dword [ebp - 0x14], 0x103
je 0x4399bb
mov eax, dword [ebp + 0x10]
call fcn.00414137
push ebx
push 0xfffffffffffffffb
jmp 0x43998e
mov eax, dword [ebp + 0x10]
call fcn.00414137
push ebx
push 0xfffffffffffffffa
mov ecx, dword [ebp + 8]
pop eax
call fcn.0041da9c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
call fcn.0041dac3
cmp byte [ebp - 1], bl
je 0x4399b4
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00415029
xor al, al
jmp 0x439abb
cmp dword [ebp + 0xc], ebx
jne 0x4399d7
cmp byte [ebp - 1], bl
je 0x4399d7
push dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
call fcn.00415029
mov al, 1
jmp 0x439abb
mov eax, 0xffff
cmp dword [ebp - 0xc], eax
jbe 0x4399e4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], ebx
jge 0x4399f4
cmp dword [ebp - 0xc], ebx
je 0x4399f1
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x18], ebx
je 0x439a25
cmp byte [ebp - 1], bl
je 0x439a0f
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
jmp 0x439a40
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 0x439a8d
test byte [ebp + 0x10], 4
je 0x439a67
cmp byte [ebp - 1], bl
je 0x439a50
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.00439b9d
add esp, 0xc
jmp 0x439a93
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 0x439a8d
cmp byte [ebp - 1], bl
je 0x439a7b
push dword [ebp + 0xc]
lea eax, [ebp - 0x1001c]
push eax
push dword [ebp - 8]
jmp 0x439a40
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 0x439a9f
push ebx
push 0xfffffffffffffff9
jmp 0x439920
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x14]
mov byte [ebp + eax - 0x1001c], bl
lea eax, [ebp - 0x1001c]
push eax
call fcn.0041512a
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 0x10