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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4312c1
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [0x44d990]
mov dword [ebp - 0x280], 0
test al, 1
jne 0x405e78
or eax, 1
push 0x435770
mov dword [0x44d990], eax
mov dword [0x44d994], 0
mov dword [0x44d998], 0
mov dword [0x44d99c], 0
call fcn.0042f0a2
add esp, 4
mov eax, dword [0x44d994]
cmp eax, dword [0x44d998]
jne 0x405e8f
push 0x44d994
call fcn.00407740
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00402bb0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x21c], 0x5c
call fcn.00402cd0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp eax, 0xffffffff
je 0x405f58
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.00402830
mov esi, eax
lea eax, [ebp - 0x27c]
cmp eax, esi
je 0x405f44
cmp dword [ebp - 0x268], 8
jb 0x405f1b
push dword [ebp - 0x27c]
call ebx
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
call fcn.00402b50
cmp dword [ebp - 0x220], 8
jb 0x405f58
push dword [ebp - 0x234]
call ebx
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov ecx, dword [0x44d998]
sub ecx, dword [0x44d994]
mov eax, 0x30c30c31
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add esp, 0xc
xor esi, esi
add eax, edx
je 0x40628d
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov eax, dword [0x44d994]
add eax, 0x78
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x405fb5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405fd4
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
je 0x406008
push 0x436b24
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x264]
call fcn.00406ce0
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, dword [0x44d994]
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x24c], cx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x138
add eax, ecx
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
call fcn.00402bb0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x23c], 0
je 0x4060b4
cmp dword [ebp - 0x238], 8
push dword [ebp - 0x254]
lea ecx, [ebp - 0x24c]
cmovae ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.MSVCR110.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40618a
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jb 0x4060cb
mov ecx, eax
test eax, eax
je 0x406106
jmp 0x4060d1
lea ecx, [ebp - 0x264]
cmp word [ecx], 0
je 0x406106
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406100
push 8
push 0
push str.system32
lea ecx, [ebp - 0x264]
call fcn.00406a50
cmp eax, 0xffffffff
je 0x40618a
mov eax, dword [ebp - 0x264]
cmp dword [ebp - 0x238], 8
jb 0x406120
push dword [ebp - 0x24c]
call ebx
mov eax, dword [ebp - 0x264]
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x250], 8
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], cx
jb 0x40614f
push eax
call ebx
add esp, 4
mov ecx, dword [0x44d998]
sub ecx, dword [0x44d994]
add dword [ebp - 0x21c], 0x150
mov eax, 0x30c30c31
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
jae 0x40628d
mov ecx, dword [ebp - 0x21c]
jmp 0x405fa3
imul esi, esi, 0x150
add esi, dword [0x44d994]
cmp dword [esi + 0x14], 8
jb 0x40619e
mov esi, dword [esi]
push ecx
mov edx, esi
lea ecx, [ebp - 0x234]
call fcn.004042e0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x220]
add esp, 4
cmp ecx, 8
jae 0x4061f2
mov eax, dword [ebp - 0x224]
inc eax
je 0x406204
add eax, eax
push eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.MSVCR110.dll_memmove]
mov ecx, dword [ebp - 0x220]
add esp, 0xc
jmp 0x406204
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
mov dword [ebp - 0x234], 0
mov eax, dword [ebp - 0x224]
mov dword [edi + 0x10], eax
xor eax, eax
cmp dword [ebp - 0x238], 8
mov word [ebp - 0x234], ax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 7
mov dword [edi + 0x14], ecx
jb 0x40623d
push dword [ebp - 0x24c]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x250], 8
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
jb 0x40626e
push dword [ebp - 0x264]
call ebx
add esp, 4
xor eax, eax
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
jmp 0x4062ad
xor eax, eax
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x436b28
mov ecx, edi
mov word [edi], ax
call fcn.00402fc0
cmp dword [ebp - 0x268], 8
jb 0x4062c1
push dword [ebp - 0x27c]
call ebx
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret