Function at 0x100595e0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d6d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp - 0x260]
cmp dword [eax + 4], 0
jne 0x10059617
xor al, al
jmp 0x10059af9
cmp dword [ebp + 8], 0
jne 0x10059624
xor al, al
jmp 0x10059af9
mov ecx, dword [ebp + 8]
push ecx
call fcn.10058f30
add esp, 4
cmp eax, 1
je 0x1005963c
xor al, al
jmp 0x10059af9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x150]
call fcn.10003320
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x14], 0x4000
mov edx, dword [ebp - 0x14]
push edx
call fcn.1003b77f
add esp, 4
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x100596cb
mov byte [ebp - 0x175], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10003370
mov al, byte [ebp - 0x175]
jmp 0x10059af9
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], edx
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x174]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10058b20
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.10058a80
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea ecx, [ebp - 0x12b]
push ecx
call fcn.1003d8e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10058f80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x100597a8
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp + 0xc]
call fcn.100033a0
lea ecx, [ebp - 0x150]
call fcn.1003a9b0
movzx edx, al
test edx, edx
jne 0x1005996b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x17c], esp
push str._____
call fcn.10003330
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x198]
push ecx
call fcn.10058d00
add esp, 0x24
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x150]
call fcn.10018810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x198]
call fcn.10003370
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x19c], esp
push 0x10064b0c
call fcn.10003330
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.10058d00
add esp, 0x24
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x150]
call fcn.10018810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b8]
call fcn.10003370
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push 0x10064b10
call fcn.10003330
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x1d8]
push ecx
call fcn.10058ba0
add esp, 0x24
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x150]
call fcn.10018810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d8]
call fcn.10003370
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push 0x10064b14
call fcn.10003330
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.10058ba0
add esp, 0x24
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x290]
lea ecx, [ebp - 0x150]
call fcn.10018810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f8]
call fcn.10003370
lea eax, [ebp - 0x150]
push eax
mov edx, 0x10064b18
call fcn.100033d0
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x12c]
call fcn.100033d0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 8
push 0xfffffffffffffff1
push 0
push 8
push 8
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x174]
push edx
lea ecx, [ebp - 0x150]
call fcn.100034e0
push eax
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax + 4]
push ecx
call fcn.10058a00
add esp, 0x44
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x100599f7
push 0x10064b1c
mov edx, dword [ebp + 8]
push edx
call fcn.1003ae80
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100599f7
mov dword [ebp - 0x134], 0xffffffff
cmp dword [ebp - 0x134], 0
jne 0x10059a84
mov dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x130]
push edx
call fcn.1003be2f
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jge 0x10059a4c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1003cc83
add esp, 4
test eax, eax
jne 0x10059a4c
mov dword [ebp - 0x134], 0xffffffff
cmp dword [ebp - 0x10], 0
jle 0x10059a75
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 4]
push edx
call fcn.10057660
add esp, 0xc
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x10059a84
cmp dword [ebp - 0x10], 0
jg 0x10059a04
cmp dword [ebp - 0x1c], 0
je 0x10059a96
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1003b0f2
add esp, 4
cmp dword [ebp - 0x130], 0
je 0x10059aae
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.1003b6a2
add esp, 4
cmp dword [ebp - 0x134], 0
jne 0x10059acf
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call fcn.10057ed0
add esp, 4
mov dword [ebp - 0x134], eax
xor ecx, ecx
cmp dword [ebp - 0x134], 0
sete cl
mov byte [ebp - 0x1f9], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10003370
mov al, byte [ebp - 0x1f9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc