Function at 0x41eef0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ad9
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0xa
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [ebp - 4], edi
call fcn.004028c0
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp + 8], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 1
jle 0x41ef63
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004025f0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41f053
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f053
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], edx
call fcn.00414aa0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [0x448020]
lea ebx, [eax + 8]
mov eax, dword [edx + 0xc]
mov ecx, 0x448020
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x41efef
test esi, 0xffff0000
jne 0x41eff3
movzx eax, si
push 0
push eax
call fcn.00403480
add esp, 8
test eax, eax
je 0x41f018
movzx ecx, si
push ecx
push eax
mov ecx, ebx
call fcn.004033b0
jmp 0x41f018
xor eax, eax
jmp 0x41f00f
mov eax, esi
lea edx, [eax + 2]
jmp 0x41f000
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f000
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.00402440
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov dword [edi + 4], edx
mov dword [edi], 0
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0x30]
mov byte [ebp - 4], 1
test eax, eax
je 0x41f03c
mov dword [eax], edi
jmp 0x41f03f
mov dword [ebp - 0x38], edi
push esi
mov dword [ebp - 0x34], edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edi, edi
test eax, eax
jne 0x41ef72
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00420547
add esp, 8
cmp eax, edi
jl 0x41f1a3
cmp eax, dword [esi - 8]
jg 0x41f1a3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], edi
je 0x41f0e4
mov bl, 4
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x38]
call fcn.0041eb10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0041fca0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0041fd10
mov edi, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41f122
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0041fcc0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 0
jne 0x41f081
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f104
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [ebp - 0x38]
call fcn.00414a00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41f136
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.0041fcc0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f164
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f184
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebp - 0x38]
call fcn.00414a00
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402950
int3