Function at 0x419fb0
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4914f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
push 0xb
push 0x4751d8
mov ecx, 0x4938a8
call fcn.00403400
mov eax, dword [0x4938a8]
xor ebx, ebx
push ebx
push eax
call fcn.0045b8f0
add esp, 8
cmp eax, ebx
jne 0x41a007
xor ecx, ecx
jmp 0x41a01f
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x41a010
sub ecx, esi
sar ecx, 1
push ecx
push eax
mov ecx, 0x4938ac
call fcn.00403400
mov ecx, dword [0x4938ac]
push ecx
call fcn.004140c0
mov edx, dword [0x4938ac]
add esp, 4
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x473f0c
lea eax, [ebp - 0x20]
push 0x4938ac
push eax
call fcn.00413e40
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x49388c]
push ebx
push ecx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a2fb
push 1
lea ecx, [edi + 0xca8]
push esi
call fcn.004105e0
call fcn.0042fa4e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a0ad
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call fcn.0042fa4e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a0da
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
call fcn.0042fa4e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a107
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp dword [0x49384c], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
jle 0x41a287
mov ecx, dword [0x49386c]
sub ecx, dword [0x493868]
sar ecx, 2
cmp ebx, ecx
jb 0x41a142
call fcn.00447ea0
mov edx, dword [0x493868]
mov eax, dword [edx + ebx*4]
push eax
mov ecx, 0x493840
call fcn.00419940
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41a1b1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41a1a1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41a1a1
push eax
call fcn.00402ba0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41a196
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp + 8], ecx
jmp 0x41a1ae
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00403400
mov ebx, dword [ebp - 0x14]
mov edx, dword [0x49386c]
sub edx, dword [0x493868]
sar edx, 2
cmp ebx, edx
jb 0x41a1c9
call fcn.00447ea0
mov eax, dword [0x493868]
mov ecx, dword [eax + ebx*4]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x41a227
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41a217
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41a217
push eax
call fcn.00402ba0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41a20c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edi, dword [ebp - 0x24]
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x41a227
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403400
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
jl 0x41a248
push 0x4751cc
push edi
call fcn.0044666e
add esp, 8
test eax, eax
je 0x41a248
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x41a277
mov ecx, dword [0x4938ac]
push edi
push ecx
lea edx, [ebp - 0x18]
push str._s_s.png
push edx
call fcn.00403af0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add esp, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xca8
call fcn.00410d90
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [0x49384c]
jl 0x41a12a
mov ecx, dword [ebp - 0x1c]
add ecx, 0xca8
call fcn.0040b2d0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a2b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a2d8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp + 8]
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 0x41a2fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a55a
mov ecx, dword [ebp - 0x1c]
push 1
add ecx, 0xd50
push esi
mov dword [ebp - 0x18], ecx
call fcn.004105e0
call fcn.0042fa4e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a33b
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 4
call fcn.0042fa4e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a368
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
call fcn.0042fa4e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41a395
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
xor edi, edi
mov byte [ebp - 4], 6
cmp dword [0x49384c], edi
jle 0x41a4ef
jmp 0x41a3c0
mov ecx, dword [0x49386c]
sub ecx, dword [0x493868]
sar ecx, 2
cmp edi, ecx
jb 0x41a3d8
call fcn.00447ea0
mov edx, dword [0x493868]
mov eax, dword [edx + edi*4]
push eax
mov ecx, 0x493840
call fcn.00419940
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x41a441
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41a434
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41a434
push eax
call fcn.00402ba0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41a429
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp + 0xc], ecx
jmp 0x41a441
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.00403400
mov edx, dword [0x49386c]
sub edx, dword [0x493868]
sar edx, 2
cmp edi, edx
jb 0x41a459
call fcn.00447ea0
mov eax, dword [0x493868]
mov ecx, dword [eax + edi*4]
mov esi, dword [ebp + 8]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41a4b7
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41a4aa
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41a4aa
push eax
call fcn.00402ba0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41a49f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebp + 8], ecx
jmp 0x41a4b7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00403400
mov edx, dword [ebp + 8]
mov eax, dword [0x4938ac]
push edx
push eax
lea ecx, [ebp - 0x1c]
push str._s_s.png
push ecx
call fcn.00403af0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push esi
push ebx
call fcn.00410d90
inc edi
cmp edi, dword [0x49384c]
jl 0x41a3c0
mov ecx, dword [ebp - 0x18]
call fcn.0040b2d0
add esi, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41a517
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a53a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a55a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
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 0x41a580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 8