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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0538
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x4c400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov edx, esi
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41d063
sub edx, ecx
lea ecx, [ebp - 0x68]
sar edx, 1
push edx
push esi
call fcn.00405ec0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
xor edx, edx
nop dword [eax]
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov edi, dword [ebp - 0x58]
cmovae ecx, dword [ebp - 0x68]
cmp edx, edi
jae 0x41d0de
mov eax, edi
lea esi, [ecx + edx*2]
sub eax, edx
je 0x41d0de
nop dword [eax + eax]
cmp word [esi], 0x5c
je 0x41d14d
add esi, 2
sub eax, 1
jne 0x41d0d0
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp esi, 0xffffffff
je 0x41d1a2
cmp edi, edx
jb 0x41d4c7
sub edi, edx
lea eax, [ebp - 0x68]
mov ecx, esi
sub ecx, edx
cmp edi, ecx
cmovb ecx, edi
cmp dword [ebp - 0x54], 8
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.00405ec0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x41d153
mov ecx, eax
call fcn.00405bc0
add dword [ebp - 0x1c], 0x18
jmp 0x41d15c
sub esi, ecx
sar esi, 1
jmp 0x41d0e1
push eax
lea ecx, [ebp - 0x20]
call fcn.004137e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x41d19a
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d190
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d4cc
push edx
push ecx
call fcn.0043d19d
add esp, 8
lea edx, [esi + 1]
jmp 0x41d0b0
cmp edi, edx
jb 0x41d4c7
sub edi, edx
lea eax, [ebp - 0x68]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp dword [ebp - 0x54], 8
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.00405ec0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x41d1ea
mov ecx, eax
call fcn.00405bc0
add dword [ebp - 0x1c], 0x18
jmp 0x41d1f3
push eax
lea ecx, [ebp - 0x20]
call fcn.004137e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x41d231
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d227
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d4cc
push edx
push ecx
call fcn.0043d19d
add esp, 8
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x14], 8
jb 0x41d23c
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d260
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00405ec0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d410
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x20]
mov edi, 1
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jle 0x41d410
lea esi, [edi + 0x17]
nop
mov ecx, dword [ebp - 0x28]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x41d4d1
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 1
cmovae eax, dword [ebp - 0x38]
push 0x4b5640
push ecx
push eax
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x84]
call fcn.00406830
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x41d309
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00406370
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x38]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x50]
push eax
movq qword [ebp - 0x40], xmm0
call fcn.00405ae0
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x41d382
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d378
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d4cc
push edx
push ecx
call fcn.0043d19d
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x41d3c3
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d3b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d4cc
push edx
push ecx
call fcn.0043d19d
add esp, 8
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d3ed
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x20]
inc edi
imul ecx
add esi, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x41d2c0
push dword [ebp - 0x6c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x24]
mov esi, eax
cmp edx, 8
jb 0x41d455
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d44b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d4cc
push edx
push ecx
call fcn.0043d19d
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.0040c570
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x41d4a7
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d49d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d4cc
push edx
push ecx
call fcn.0043d19d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043cc06
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00406500
call fcn.00446380
call fcn.004014a0
int3