Function at 0x41ce20
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4437eb
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x45ea14]
xor eax, esp
mov dword [esp + 0x68c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45ea14]
xor eax, esp
push eax
lea eax, [esp + 0x6a4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x6b8]
mov edi, dword [esp + 0x6b4]
mov ebx, dword [esp + 0x6bc]
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
call dword [0x44931c]
test eax, eax
je 0x41ce8e
push esi
call dword [0x449314]
test eax, eax
jne 0x41ce99
push 0
push esi
push 0
call dword [0x4492d0]
xor esi, esi
xor eax, eax
mov word [esp + 0x28], ax
mov eax, edi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41ceb3
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.004036d1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6ac], esi
lea esi, [eax - 1]
cmp esi, eax
jbe 0x41cee4
call fcn.0042c67f
mov eax, dword [esp + 0x28]
mov ebp, 8
cmp dword [esp + 0x3c], ebp
jae 0x41cef7
lea eax, [esp + 0x28]
cmp word [eax + esi*2], 0x5c
je 0x41cf0e
push 1
push 0x4523d0
lea ecx, [esp + 0x2c]
call fcn.00402fe6
push 1
push 0x44f030
lea ecx, [esp + 0x2c]
call fcn.00402fe6
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebp
jae 0x41cf2c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [0x4490e4]
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
jne 0x41cf61
cmp dword [esp + 0x3c], 8
jb 0x41cf57
mov edx, dword [esp + 0x28]
push edx
call fcn.0042c02e
add esp, 4
mov eax, 1
jmp 0x41d185
push 0x208
lea eax, [esp + 0x294]
push 0
push eax
call fcn.0042c310
push 0x208
lea ecx, [esp + 0x4a8]
push 0
push ecx
call fcn.0042c310
add esp, 0x18
lea esp, [esp]
mov esi, dword [0x44930c]
push 0x44f02c
lea edx, [esp + 0x70]
push edx
call esi
test eax, eax
je 0x41d154
push 0x4499b8
lea eax, [esp + 0x70]
push eax
call esi
test eax, eax
je 0x41d154
mov esi, dword [0x449318]
lea ecx, [esp + 0x6c]
push ecx
push edi
lea edx, [esp + 0x298]
push edx
call esi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x4a0]
push edx
call esi
test byte [esp + 0x40], 0x10
je 0x41d00f
push 1
push ebx
lea eax, [esp + 0x4a0]
push eax
lea ecx, [esp + 0x29c]
push ecx
call fcn.0041ce20
add esp, 0x10
jmp 0x41d154
mov esi, dword [esp + 0x6c0]
test esi, esi
jne 0x41d042
lea edx, [esp + 0x290]
push edx
call dword [0x44931c]
test eax, eax
je 0x41d042
lea eax, [esp + 0x290]
push eax
call dword [0x449314]
test eax, eax
je 0x41d154
test ebx, ebx
je 0x41d12c
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x41d12c
lea edx, [esp + 0x290]
push edx
call dword [0x4492f8]
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
cmp edi, dword [ebx + 0x10]
jbe 0x41d088
call fcn.0042c67f
mov esi, dword [ebx]
lea ebx, [ebx]
mov ebp, dword [ebx + 0x10]
cmp dword [ebx + 0xc], ebp
jbe 0x41d09d
call fcn.0042c67f
mov eax, dword [ebx]
test esi, esi
je 0x41d0a7
cmp esi, eax
je 0x41d0ac
call fcn.0042c67f
cmp edi, ebp
je 0x41d14c
test esi, esi
jne 0x41d124
call fcn.0042c67f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41d0c9
call fcn.0042c67f
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x41d0d4
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call dword [0x4492e8]
test eax, eax
je 0x41d14c
xor edx, edx
cmp dword [esp + 0x6c0], edx
lea eax, [esp + 0x498]
sete dl
lea ecx, [esp + 0x290]
push edx
push eax
push ecx
call dword [0x449220]
test esi, esi
jne 0x41d128
call fcn.0042c67f
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41d11c
call fcn.0042c67f
add edi, 0x1c
jmp 0x41d090
mov eax, dword [esi]
jmp 0x41d0bf
mov eax, dword [esi]
jmp 0x41d112
xor edx, edx
test esi, esi
sete dl
lea eax, [esp + 0x498]
lea ecx, [esp + 0x290]
push edx
push eax
push ecx
call dword [0x449220]
jmp 0x41d154
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push ebp
call dword [0x4490e0]
test eax, eax
jne 0x41cf90
push ebp
call dword [0x4490dc]
cmp dword [esp + 0x3c], 8
jb 0x41d183
mov eax, dword [esp + 0x28]
push eax
call fcn.0042c02e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x6a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68c]
xor ecx, esp
call fcn.0042c2f3
add esp, 0x69c
ret