Function at 0x10041bb0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100698a0
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x1008a268]
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 edi, dword [ebp + 8]
mov eax, edi
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x10041bee
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x100422c7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10041c09
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x10041c2f
cmp dword [esi + 0x14], 8
jb 0x10041c18
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10041c20
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x100422c7
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x10041c52
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.1004c370
add esp, 8
test eax, eax
je 0x10041cf5
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
jb 0x10041c87
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.1004c370
add esp, 8
lea ecx, [ebp - 0x40]
test eax, eax
je 0x10041cf0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push dword [ebp - 0x48]
push eax
call fcn.100416c0
add esp, 0x10
test eax, eax
jne 0x10041d02
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10041ccc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x10041cdb
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10041ce3
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x40]
call fcn.10005b00
lea ecx, [ebp - 0x58]
call fcn.10005b00
jmp 0x100422c7
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000e170
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1005ba50
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete bl
cmp edx, 0x10
jb 0x10041d8e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10041d84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100422e5
push edx
push ecx
call fcn.100174d6
add esp, 8
test bl, bl
jne 0x10041f93
lea ecx, [ebp - 0xac]
call fcn.1004b410
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xac]
call fcn.1004be90
test al, al
je 0x10041f88
call fcn.10002f50
mov ecx, eax
test ecx, ecx
je 0x100422ea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x1006dc38
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.10002ca0
test al, al
jne 0x10041e03
push 0
push 0x1006dc38
lea ecx, [ebp - 0x8c]
call fcn.10003400
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000e170
push 0xfde9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xac]
call fcn.1004bd00
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x10041e86
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10041e7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100422f4
push edx
push ecx
call fcn.100174d6
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x8c]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10041ebc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000e170
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1005ba50
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 0xb
sete al
mov byte [ebp - 0x89], al
cmp edx, 0x10
jb 0x10041f5a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10041f4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100422f9
push edx
push ecx
call fcn.100174d6
mov al, byte [ebp - 0x89]
add esp, 8
test al, al
je 0x10041fa0
lea ecx, [ebp - 0x88]
call fcn.10005b00
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10041f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.10048800
lea ecx, [ebp - 0x70]
call fcn.10005b00
jmp 0x10041ced
lea ecx, [ebp - 0xc4]
call fcn.1004b410
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004be90
test al, al
jne 0x10041fd2
lea ecx, [ebp - 0xc4]
call fcn.10048800
jmp 0x10041f5e
call fcn.10002f50
mov ecx, eax
test ecx, ecx
je 0x100422fe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x1006dc38
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call fcn.10002ca0
test al, al
jne 0x10042019
push 0
push 0x1006dc38
lea ecx, [ebp - 0x8c]
call fcn.10003400
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000e170
push 0xfde9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xac]
call fcn.1004bd00
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x1004209c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10042092
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042308
push edx
push ecx
call fcn.100174d6
add esp, 8
mov edx, dword [ebp - 0x8c]
mov eax, ebx
mov dword [ebp - 0x18], 0
add edx, 0xfffffff0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xd
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100420cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x1004230d
mov ecx, dword [ebp - 0x94]
mov edx, eax
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
mov eax, dword [ebp - 0x90]
jne 0x1004212f
cmp word [ecx], 0
je 0x1004212b
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
mov word [ebp - 0x8a], ax
mov eax, dword [ebp - 0x90]
jne 0x1004212f
add ecx, 4
add edx, 4
cmp word [ebp - 0x8a], 0
jne 0x100420f0
xor ecx, ecx
jmp 0x10042134
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jg 0x1004213e
cmp dword [eax - 0xc], 0
jne 0x1004216f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10042148
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x10042157
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x1004215f
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x90]
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042186
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc4]
call fcn.10048800
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x100421cc
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100421c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042317
push edx
push ecx
call fcn.100174d6
add esp, 8
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x78], 0
add edx, 0xfffffff0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10042200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.10048800
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x1004223f
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10042235
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004231c
push edx
push ecx
call fcn.100174d6
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x10042285
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004227b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042321
push edx
push ecx
call fcn.100174d6
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x100422c7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100422bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042326
push edx
push ecx
call fcn.100174d6
add esp, 8
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.10017847
mov esp, ebp
pop ebp
ret 8
call fcn.100260c9
push 0x80004005
call fcn.10002c80
call fcn.100260c9
call fcn.100260c9
push 0x80004005
call fcn.10002c80
call fcn.100260c9
push 0x80004005
call fcn.10002c80
call fcn.100260c9
call fcn.100260c9
call fcn.100260c9
call fcn.100260c9
int3