Function at 0x442e80
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x44f470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00412580
add esp, 4
mov edi, eax
mov ecx, dword [ebx + 4]
mov eax, dword [edi]
lea esi, [ebx + 4]
xor ebp, ebp
cmp ecx, eax
mov dword [esp + 0x3c], ebp
je 0x442efd
cmp dword [ecx - 0xc], ebp
jge 0x442ed5
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x442eda
cmp dword [eax - 0xc], ebp
jge 0x442ee8
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, esi
call fcn.00404f60
jmp 0x442efd
mov ecx, esi
call fcn.00402f00
mov edi, dword [edi]
mov dword [esi], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x463294]
mov dword [esp + 0x3c], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x442f34
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x442f34
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0044737a
add esp, 4
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x44]
xor esi, esi
mov edi, dword [ebp + 4]
test edi, edi
je 0x4430f6
mov ecx, dword [ebp + 8]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
mov eax, dword [esp + 0x10]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jae 0x4430f6
mov eax, dword [0x463290]
mov dword [esp + 0x30], 0
mov ecx, eax
mov edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + edi]
mov dword [esp + 0x3c], 1
cmp ecx, eax
je 0x442fe8
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x442fb3
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x442fba
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x442fca
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00404f60
jmp 0x442fe4
lea ecx, [esp + 0x1c]
call fcn.00402f00
mov edi, dword [esi + edi]
mov dword [esp + 0x1c], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x20]
mov edi, dword [ebp + 4]
mov eax, dword [esi + edi + 4]
cmp edx, eax
je 0x443039
mov ecx, dword [edx - 0xc]
test ecx, ecx
jge 0x443007
mov ecx, dword [0x463294]
add edx, 0xfffffff4
cmp edx, ecx
jne 0x44300e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x44301e
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x28]
call fcn.00404f60
jmp 0x443039
lea ecx, [esp + 0x20]
call fcn.00402f00
mov edi, dword [esi + edi + 4]
mov dword [esp + 0x20], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [ebp + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + edi + 0xc]
cmp ecx, eax
je 0x44308e
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x44305c
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x443063
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x443073
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00404f60
jmp 0x44308e
lea ecx, [esp + 0x28]
call fcn.00402f00
mov edi, dword [esi + edi + 0xc]
mov dword [esp + 0x28], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 4]
lea edx, [esi + eax]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00442ba0
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.00402fa0
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.0043c2e0
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 8]
push eax
call fcn.0043ac80
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00439d10
mov ecx, dword [esp + 0x10]
inc ecx
add esi, 0x18
mov dword [esp + 0x10], ecx
jmp 0x442f3e
mov eax, dword [ebx + 0xc]
lea edi, [ebx + 8]
test eax, eax
je 0x44315b
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x44315b
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x44]
add eax, 8
push eax
push ecx
call fcn.00412010
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], 3
push edx
call fcn.00411b50
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0040f210
add esp, 0x10
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0043c2e0
mov ecx, edi
xor ebp, ebp
call fcn.0043a670
test eax, eax
jbe 0x4431a2
xor esi, esi
mov eax, dword [ebx + 0xc]
mov eax, dword [esi + eax + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x443193
mov ecx, dword [ebx + 0xc]
push 0
mov edx, dword [esi + ecx + 8]
lea eax, [esi + ecx]
push edx
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, edi
inc ebp
add esi, 0x18
call fcn.0043a670
cmp ebp, eax
jb 0x44316a
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4