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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a708
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44bb64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41131e
cmp eax, 0x50
je 0x41131e
cmp eax, 0xb7
je 0x41131e
xor edx, edx
jmp 0x411323
mov edx, 1
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0xe0]
push eax
push ecx
push edx
call fcn.0041d600
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x94]
mov ebx, dword [ecx]
mov eax, ecx
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
cmp ebx, eax
je 0x411643
mov edx, dword [0x44bb48]
mov eax, dword [edx + 0xc]
mov esi, dword [ebx + 0xc]
mov ecx, 0x44bb48
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x4113af
test esi, 0xffff0000
jne 0x411399
movzx esi, si
push eax
push esi
call fcn.004019d0
add esp, 8
test eax, eax
je 0x4113bc
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00405230
jmp 0x4113b9
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4113a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00401530
mov edi, dword [ebp - 0x14]
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4113fa
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4115ed
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x28], edi
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x411424
cmp eax, dword [edi]
jne 0x411424
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41145f
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x411655
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.0042360d
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x1c], esi
mov edx, dword [esi - 0xc]
mov byte [ebp - 4], 2
test edx, edx
js 0x41165a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x411491
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401390
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004235ed
add esp, 8
test eax, eax
js 0x41165a
cmp eax, dword [esi - 8]
jg 0x41165a
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405620
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004105a0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00406d50
mov eax, dword [eax]
mov ecx, str..RPT
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411516
test dx, dx
je 0x411512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4114f0
xor eax, eax
jmp 0x41151b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x24]
sete bl
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 0x411543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411553
lea edx, [ebp - 0x18]
lea ecx, [edi + 0x10]
push edx
call fcn.004055b0
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 0xec]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
push eax
push edi
push 0
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call fcn.0041d600
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115c7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x11], 0
jne 0x41163a
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x11], 0
jne 0x411613
mov eax, dword [ecx]
cmp byte [eax + 0x11], 0
jne 0x41160e
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x11], 0
je 0x411604
mov dword [ebp - 0x10], ecx
jmp 0x411637
mov eax, dword [ebx + 4]
cmp byte [eax + 0x11], 0
jne 0x411634
jmp 0x411623
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [eax + 8]
jne 0x411634
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x411620
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x2c]
jne 0x411352
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00407b40
push 0x80070057
call fcn.00401210
int3