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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5fb61c]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor edi, edi
push eax
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x268], edi
call fcn.00422540
push esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], edi
call fcn.00422540
push 0x592378
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x28c]
push ecx
mov byte [ebp - 4], 1
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x260]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x28c]
add eax, 0xfffffff0
mov dword [ebp - 0x270], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470ef0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x470f04
mov dword [ebp - 0x268], 1
jmp 0x471151
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470f2b
mov edx, dword [ebp - 0x264]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
je 0x471144
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov bl, 4
test byte [ebp - 0x260], 0x10
je 0x47108f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x592320
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x47111e
push 0x59185c
lea ecx, [ebp - 0x234]
push ecx
call esi
test eax, eax
je 0x47111e
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.004221d0
push 0x592324
push eax
lea edx, [ebp - 0x280]
push edx
mov byte [ebp - 4], 2
call fcn.004221d0
mov esi, eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x288]
push edx
mov byte [ebp - 4], 3
call fcn.004221d0
push 0x592324
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], bl
call fcn.004221d0
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
mov byte [ebp - 4], 5
call fcn.00470e40
mov esi, eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
add esp, 0x38
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471010
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47105c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x471144
jmp 0x47111e
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x284]
push eax
call fcn.004221d0
mov esi, eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x27c]
push eax
mov byte [ebp - 4], 6
call fcn.004221d0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 0
push esi
push eax
call edi
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4710f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47111e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x270]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x470f33
mov dword [ebp - 0x268], 1
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4711a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
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.005332ca
mov esp, ebp
pop ebp
ret