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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009910d
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x100c2354]
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 0x100408be
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x10041079
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100408d9
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x100408ff
cmp dword [esi + 0x14], 8
jb 0x100408e8
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100408f0
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10041079
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x10040922
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.10046240
add esp, 8
test eax, eax
je 0x100409c5
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
jb 0x10040957
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.10046240
add esp, 8
lea ecx, [ebp - 0x58]
test eax, eax
je 0x100409c0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x70]
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], 0x10
push ecx
cmovae eax, dword [ebp - 0x70]
push dword [ebp - 0x60]
push eax
call fcn.10015640
add esp, 0x10
test eax, eax
jne 0x100409d2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004099c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x100409ab
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100409b3
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x58]
call fcn.10005150
lea ecx, [ebp - 0x70]
call fcn.10005150
jmp 0x10041079
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], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10009610
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.10046980
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete bl
cmp edx, 0x10
jb 0x10040a64
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040a5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041097
push edx
push ecx
call fcn.1002fc08
add esp, 8
test bl, bl
jne 0x10040ce0
lea ecx, [ebp - 0x100]
call fcn.100357f0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x100]
call fcn.100362a0
test al, al
je 0x10040cd5
push 0
push 0x1009c568
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.10009610
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.10009610
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x100]
call fcn.100360a0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x10040b03
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.10047090
add esp, 0xc
mov edx, dword [ebp - 0xa4]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x10040b56
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004109c
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x10040ba9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040b9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410a1
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x10040bf3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040be9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410a6
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10009610
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10046980
mov edx, dword [ebp - 0x2c]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 0xc
sete bl
cmp edx, 0x10
jb 0x10040c8b
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040c81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410ab
push edx
push ecx
call fcn.1002fc08
add esp, 8
test bl, bl
jne 0x10040cbf
lea ecx, [ebp - 0x118]
call fcn.100357f0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x118]
call fcn.100362a0
test al, al
jne 0x10040cf0
lea ecx, [ebp - 0x118]
call fcn.10032980
lea ecx, [ebp - 0xa0]
call fcn.10005150
lea ecx, [ebp - 0xd0]
call fcn.100051a0
lea ecx, [ebp - 0x100]
call fcn.10032980
lea ecx, [ebp - 0x88]
call fcn.10005150
jmp 0x100409bd
push 0
push 0x1009c568
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10009610
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.10009610
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x118]
call fcn.100360a0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x10040d60
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10047090
mov edx, dword [ebp - 0xa4]
add esp, 0xc
cmp edx, 0x10
jb 0x10040daf
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040da5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410b0
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
cmp edx, 0x10
jb 0x10040dfe
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040df4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410b5
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x10040e44
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040e3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410ba
push edx
push ecx
call fcn.1002fc08
add esp, 8
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.1003fa90
add esp, 8
test al, al
jne 0x10040e67
cmp dword [ebp - 0xd8], 0
jne 0x10040e92
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10040e71
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x10040e80
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10040e88
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0xd4]
cmp edx, 8
jb 0x10040ed2
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10040ec8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410bf
push edx
push ecx
call fcn.1002fc08
add esp, 8
xor eax, eax
mov dword [ebp - 0xd8], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
call fcn.10032980
mov edx, dword [ebp - 0x8c]
cmp edx, 0x10
jb 0x10040f34
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040f2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410c4
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp edx, 8
jb 0x10040f8f
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10040f85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410c9
push edx
push ecx
call fcn.1002fc08
add esp, 8
xor eax, eax
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
call fcn.10032980
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x10040fee
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10040fe4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410ce
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 0x10
jb 0x10041037
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004102d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410d3
push edx
push ecx
call fcn.1002fc08
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x10041079
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004106f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100410d8
push edx
push ecx
call fcn.1002fc08
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.1002ff7e
mov esp, ebp
pop ebp
ret 8
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
call fcn.1006db89
int3