Function at 0x40de34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 8], 0
mov dword [ebp - 0x118], 0xffffffff
call fcn.00412279
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
push eax
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00412144
add esp, 0xc
push 0x4389ac
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ded7
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412821
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40de9a
jmp 0x40e17e
push 0x80
push 0x4389ac
call fcn.0040e5b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ded7
push 0x4389ac
call fcn.00411a16
push eax
push 0x80
push 0x23
call fcn.00412a9b
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x40e17e
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040cf77
add esp, 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0040f2cc
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40df04
jmp 0x40e17e
mov edx, dword [ebp + 0x10]
mov byte [edx + 0x48], 1
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0x11c]
mov byte [eax + 0x49], cl
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 4]
mov byte [edx + 0x4a], al
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040d119
add esp, 4
push 0x180
push 0x20
push 0x8302
push 0x4389ac
call fcn.00415070
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0xffffffff
jne 0x40df6e
push fcn.00411a16
push 0x4389ac
push 0x24
call fcn.00412a9b
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40e17e
push 0xac
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
call fcn.00415b4b
add esp, 0xc
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xac
je 0x40dfc0
mov ecx, dword [ebp - 0x114]
push ecx
push 0xac
push 0x4389ac
call fcn.00411a16
push eax
push 0x25
call fcn.00412a9b
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x40e104
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 2]
and eax, 1
test eax, eax
jne 0x40e0fd
mov ecx, dword [ebp + 0x10]
movsx edx, word [ecx + 0x14]
cmp edx, 2
jl 0x40e0fd
movsx eax, byte [0x438ab0]
test eax, eax
je 0x40e0fd
push 0x4389ac
call fcn.0040f32b
add esp, 4
cmp eax, 2
je 0x40e0fd
push 0x438ab0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e054
push 0x80
push 0x438ab0
call fcn.0040e5b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e054
push 0x438ab0
call fcn.00411a16
push eax
push 0x80
push 0x26
call fcn.00412a9b
add esp, 0x10
mov dword [ebp - 8], eax
jmp 0x40e104
push 0x180
push 0x20
push 0x8302
push 0x438ab0
call fcn.00415070
add esp, 0x10
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x40e096
call fcn.00411a16
push eax
push 0x438ab0
push 0x27
call fcn.00412a9b
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40e104
push 0x438ab0
lea ecx, [ebp - 0x110]
push ecx
call fcn.00412078
add esp, 8
push 0x104
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.00415b4b
add esp, 0xc
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x104
je 0x40e0fd
mov ecx, dword [ebp - 0x114]
push ecx
push 0x104
push 0x438ab0
call fcn.00411a16
push eax
push 0x28
call fcn.00412a9b
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x40e104
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x40e17e
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
call fcn.00414cb1
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffff
movsx edx, byte [0x4389ac]
test edx, edx
je 0x40e14f
push 0x4389ac
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e14f
mov eax, dword [0x4316f8]
push eax
push 0x4389ac
call fcn.0040e5b0
add esp, 8
movsx ecx, byte [0x438ab0]
test ecx, ecx
je 0x40e17e
push 0x438ab0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e17e
mov edx, dword [0x4316fc]
push edx
push 0x438ab0
call fcn.0040e5b0
add esp, 8
cmp dword [ebp - 0x118], 0xffffffff
je 0x40e196
mov eax, dword [ebp - 0x118]
push eax
call fcn.00414cb1
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412286
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret