Function at 0x43497f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1001c
call fcn.00453310
or dword [ebp - 8], 0xffffffff
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0x46b160
mov dword [ebp - 0x10], esi
mov byte [ebp - 2], 1
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x1001c], 0
call fcn.0041028c
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0xc], esi
je 0x434a2c
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, edi
call fcn.00405a0e
call fcn.0040fce4
push eax
lea esi, [ebx + 0x80c]
call fcn.004348f1
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x434a07
push eax
or ecx, 0xffffffff
mov eax, ebx
call fcn.0041a7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x358], eax
call fcn.0041a82c
xor al, al
jmp 0x434c1b
mov ecx, dword [ebp + 0xc]
test dword [eax + 0x28], ecx
jne 0x434a16
push 0
push 0xfffffffffffffffe
pop ecx
jmp 0x4349e6
test cl, 2
je 0x434a1f
mov eax, dword [eax]
jmp 0x434a27
test cl, 4
je 0x434a44
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x434a44
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x434a41
push esi
push 0xfffffffffffffffd
jmp 0x434a13
mov edi, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
mov esi, eax
cmp dword [edi + 8], esi
jbe 0x434a64
mov ecx, edi
call fcn.00405a0e
call fcn.0040fce4
mov dword [ebp + 8], eax
jmp 0x434a68
or dword [ebp + 8], 0xffffffff
lea eax, [esi + 2]
cmp dword [edi + 8], eax
jne 0x434a89
lea eax, [esi + 1]
mov ecx, edi
call fcn.00405a0e
mov ecx, eax
call fcn.0040fe1e
test al, al
je 0x434a89
mov byte [ebp - 1], 1
push 0
push 0
push dword [ebp - 0xc]
lea edi, [ebp - 8]
xor esi, esi
call fcn.00434ced
add esp, 0xc
test eax, eax
jne 0x434ac9
push eax
push 0xfffffffffffffffc
pop ecx
mov eax, ebx
call fcn.0041a7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x358], eax
call fcn.0041a82c
mov eax, dword [ebp + 0xc]
test eax, eax
jmp 0x434bdb
xor edi, edi
cmp dword [ebp - 8], edi
jne 0x434b3d
cmp dword [ebp + 0xc], edi
je 0x434b3d
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x434b30
cmp dword [ebp - 0x18], 0x103
je 0x434b3d
mov eax, dword [ebp + 0xc]
call fcn.0040f402
push edi
push 0xfffffffffffffffb
pop ecx
mov eax, ebx
call fcn.0041a7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x358], eax
call fcn.0041a82c
cmp byte [ebp - 1], 0
je 0x434a00
mov esi, dword [ebp + 0x10]
push edi
call fcn.004101c7
jmp 0x434a00
mov eax, dword [ebp + 0xc]
call fcn.0040f402
push edi
push 0xfffffffffffffffa
jmp 0x434afd
cmp dword [ebp + 8], edi
jne 0x434b5a
cmp byte [ebp - 1], 0
je 0x434b5a
push dword [ebp - 8]
mov esi, dword [ebp + 0x10]
call fcn.004101c7
mov al, 1
jmp 0x434c1b
mov eax, 0xffff
cmp dword [ebp - 8], eax
jbe 0x434b67
mov dword [ebp - 8], eax
cmp dword [ebp + 8], edi
jge 0x434b77
cmp dword [ebp - 8], edi
je 0x434b74
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
cmp byte [ebp - 1], 0
je 0x434b9c
push dword [ebp + 8]
lea eax, [ebp - 0x1001c]
push eax
push dword [ebp - 0xc]
lea edi, [ebp - 8]
lea esi, [ebp - 0x14]
call fcn.00434ced
add esp, 0xc
xor edi, edi
jmp 0x434bb4
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1001c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x434beb
push edi
push 0xfffffffffffffff9
pop ecx
mov eax, ebx
call fcn.0041a7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x358], eax
call fcn.0041a82c
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x434be5
mov esi, dword [ebp - 0x10]
call fcn.0040f402
mov byte [ebp - 2], 0
jmp 0x434c18
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x1001c], 0
lea eax, [ebp - 0x1001c]
push eax
or eax, 0xffffffff
call fcn.0040de9f
mov edi, dword [ebp + 0x10]
pop ecx
mov esi, eax
push esi
call fcn.0041028c
push esi
call fcn.0044de9c
pop ecx
mov al, byte [ebp - 2]
pop edi
pop esi
leave
ret 0xc