Function at 0x411600
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43e653
mov eax, dword fs:[0]
push eax
sub esp, 0xb04
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0xb00], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xb18]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb28]
xor ebx, ebx
push 0x208
mov esi, ecx
lea ecx, [esp + 0x708]
push ebx
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], ebx
call fcn.00424c40
add esp, 0xc
push 0x208
lea edx, [esp + 0x910]
push ebx
push edx
call fcn.00424c40
add esp, 0xc
push esi
lea ecx, [esp + 0x2c]
call fcn.004098c0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb24], ebx
call fcn.0040a710
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x704]
lea esp, [esp]
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x4116b0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4116dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb20], edi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x704]
add eax, edi
jmp 0x411710
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x411710
mov ecx, dword [0x4479b0]
mov edx, dword [0x4479b4]
mov dword [eax], ecx
mov ecx, dword [0x4479b8]
mov dword [eax + 4], edx
mov dl, byte [0x4479bc]
mov dword [eax + 8], ecx
push esi
lea ecx, [esp + 0x2c]
mov byte [eax + 0xc], dl
call fcn.004098c0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb24], 1
call fcn.0040a710
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x90c]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x411770
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411799
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb20], edi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x90c]
add eax, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4117c8
mov ecx, dword [0x447bc0]
mov edx, dword [0x447bc4]
mov dword [eax], ecx
mov ecx, dword [0x447bc8]
mov dword [eax + 4], edx
mov dl, byte [0x447bcc]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x704]
push 0x447a7c
push eax
call fcn.00422167
lea ecx, [esp + 0x914]
mov esi, eax
push 0x447a7c
push ecx
mov dword [esp + 0x54], esi
call fcn.00422167
add esp, 0x10
mov dword [esp + 0x28], eax
cmp esi, ebx
je 0x41204c
cmp eax, ebx
je 0x41204c
push 0x10e
lea edx, [esp + 0x170]
push ebx
push edx
call fcn.00424c40
add esp, 0xc
push esi
push 1
lea eax, [esp + 0x174]
push 0x10e
push eax
call fcn.00422af3
lea ecx, [esp + 0x17c]
push str.LDIND
push ecx
call fcn.00421a4e
add esp, 0x18
test eax, eax
jne 0x41204c
push esi
mov byte [esp + 0x1f], 1
mov byte [esp + 0x1e], al
mov byte [esp + 0x27], al
call fcn.004227eb
add esp, 4
test eax, eax
jne 0x412050
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x411fef
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x118
lea ecx, [esp + 0x58]
push 0
push ecx
mov dword [esp + 0xb2c], 2
call fcn.00424c40
mov edx, dword [esp + 0x50]
add esp, 0xc
push edx
push 1
lea eax, [esp + 0x5c]
push 0x118
push eax
call fcn.00422af3
add esp, 0x10
cmp eax, 1
jne 0x411ff9
push 0x208
lea ecx, [esp + 0x500]
push 0
push ecx
call fcn.00424c40
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x508]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411923
lea edi, [esp + 0x4fc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411935
mov dx, word [0x4478d8]
lea eax, [esp + 0x178]
push 0x448368
push eax
mov word [edi], dx
call fcn.00421a4e
add esp, 8
test eax, eax
je 0x4119f6
cmp dword [0x453d05], 0
jne 0x4119bb
lea eax, [esp + 0x178]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411976
lea edi, [esp + 0x4fc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411987
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4fc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4119a7
mov cx, word [0x4478d8]
mov word [edi], cx
jmp 0x4119f6
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0x500]
push eax
lea ecx, [esp + 0x24]
push str.UnCompressLdxFile_m_szRootPath__s___s_
push ecx
call fcn.00409670
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 0
push edx
push 0x453d09
call fcn.0040d390
mov dword [esp + 0x40], 1
lea eax, [esp + 0x54]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411a00
lea edi, [esp + 0x4fc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411a11
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x411fef
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x4fc]
push ecx
lea edx, [esp + 0x3c]
push 0x447a9c
push edx
mov byte [esp + 0xb2c], 3
call fcn.00409670
mov ebp, dword [esp + 0x44]
add esp, 0xc
push 0x5c
push ebp
call fcn.00423215
add esp, 8
test eax, eax
jne 0x411a87
or eax, 0xffffffff
jmp 0x411a89
sub eax, ebp
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
call fcn.00409170
cmp byte [esp + 0x1a], 0
mov byte [esp + 0xb20], 4
mov ebx, dword [esp + 0x3c]
jne 0x411ad8
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x411ac9
push 0
lea ecx, [esp + 0x40]
call fcn.00409bc0
mov ebx, dword [esp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne byte [esp + 0x23]
test dword [esp + 0x160], 0x80000000
je 0x411b1b
lea edi, [esp + 0x4fc]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411af0
mov cx, word [0x4478d8]
lea edx, [esp + 0x4fc]
mov word [edi], cx
mov ecx, dword [esp + 0x34]
push edx
call fcn.004124f0
add esp, 4
jmp 0x411f65
cmp dword [0x453d05], 0
mov esi, dword [esp + 0x34]
jne 0x411b3a
lea ecx, [esp + 0x4fc]
push ecx
mov ecx, esi
call fcn.004124f0
add esp, 4
mov edx, dword [esp + 0x164]
mov eax, dword [esp + 0x28]
push 0
push 0
push edx
push eax
call fcn.00422bac
add esp, 0x10
lea ecx, [esp + 0x4fc]
push ecx
lea ecx, [esp + 0x30]
call fcn.004098c0
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0xb24], 5
call fcn.0040a5c0
add esp, 4
mov byte [esp + 0xb20], 7
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ba5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x411fef
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xb20], 8
cmp dword [0x453d05], 0
jne 0x411c24
lea ecx, [esp + 0x4fc]
push ecx
lea edx, [esp + 0x20]
push str.UnCompressLdxFile_strDstFile__s_
push edx
call fcn.00409670
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push eax
push 0x453d09
call fcn.0040d390
lea ecx, [esp + 0x4fc]
push ecx
lea edx, [esp + 0x28]
push 0x447a9c
push edx
call fcn.00409670
add esp, 0xc
jmp 0x411ce1
cmp dword [esp + 0xb2c], 0
je 0x411cb9
cmp dword [esp + 0x40], 0
lea eax, [esp + 0x4fc]
je 0x411c61
push eax
lea ecx, [esp + 0x28]
push 0x447a9c
push ecx
call fcn.00409670
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x411ce1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411c64
sub eax, edx
xor edx, edx
cmp byte [esp + eax + 0x4fb], 0x5c
je 0x411cab
add eax, 0xffffffff
js 0x411cab
mov edi, edi
mov cl, byte [esp + eax + 0x4fc]
cmp cl, 0x2e
je 0x411ca4
cmp cl, 0x5c
je 0x411cab
sub eax, 1
jns 0x411c80
push edx
push esi
push 0x448d58
lea edx, [esp + 0x30]
push edx
jmp 0x411cd9
lea edx, [esp + eax + 0x4fc]
push edx
push esi
push 0x448d58
lea edx, [esp + 0x30]
push edx
jmp 0x411cd9
cmp dword [esp + 0x40], 0
je 0x411cc9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x48]
push eax
push esi
push str._s_s
lea ecx, [esp + 0x30]
push ecx
call fcn.00409670
add esp, 0x10
cmp byte [esp + 0x23], 0
je 0x411e96
cmp byte [esp + 0x1a], 0
jne 0x411eea
mov esi, dword [esp + 0x24]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x411d19
push 0
lea ecx, [esp + 0x28]
call fcn.00409bc0
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x27c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x411ea1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, 0x404
je 0x411de9
cmp eax, 0xc04
je 0x411de9
lea eax, [esp + 0x50]
push eax
mov edi, 7
call fcn.0040ec10
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x4c]
push ecx
mov edi, 0x74
mov byte [esp + 0xb24], 9
call fcn.0040ec10
mov ebp, dword [ebp]
mov eax, dword [eax]
add esp, 4
push 4
push ebp
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411dbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb20], 8
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x411e04
push 4
push 0x448d68
push 0x448d74
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
cmp edi, 7
jne 0x411e24
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 1
jmp 0x411eee
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
lea ecx, [esp + 0x24]
push str.UnCompressLdxFile_SetFileAttributes__s__GetLastError__d_
push ecx
call fcn.00409670
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 0
push edx
push 0x453d09
call fcn.0040d390
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push eax
push esi
lea eax, [esp + 0x24]
push str.UnCompressLdxFile_DeleteFile__s_GetLastError__d_
push eax
call fcn.00409670
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push 0
push ecx
push 0x453d09
call fcn.0040d390
mov ebp, dword [esp + 0x38]
mov byte [esp + 0x1a], 1
jmp 0x411eee
cmp byte [esp + 0x1a], 0
jne 0x411eea
mov esi, dword [esp + 0x24]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x411ebf
push 0
lea ecx, [esp + 0x28]
call fcn.00409bc0
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x3bc]
push edx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x411ee1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 1
test edi, edi
setne byte [esp + 0x1a]
jmp 0x411eee
mov esi, dword [esp + 0x24]
cmp byte [esp + 0x1b], 0
je 0x411f19
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x168]
push eax
push esi
push ecx
lea ecx, [esp + 0x164]
call fcn.004120b0
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0xb20], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411f3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb20], 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xb20], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xb20], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb20], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411fd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004227eb
add esp, 4
test eax, eax
je 0x41189a
jmp 0x412050
push 0x80004005
call fcn.00409d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push str.CUnCompressFile::UnCompressLdxFile_fread_Fail__d_
push edx
call fcn.00409670
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0
push esi
push 0x453d09
call fcn.0040d390
lea eax, [esi - 0x10]
mov dword [esp + 0xb20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412050
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x412061
push eax
call fcn.004221f5
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x412072
push eax
call fcn.004221f5
add esp, 4
push 0
push str.UnCompressLdxFile_Over
push 0x453d09
call fcn.0040d390
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xb18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb00]
xor ecx, esp
call fcn.0042179d
add esp, 0xb10
ret