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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ac50
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100be518]
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 0x1003903e
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x10039717
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10039059
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x1003907f
cmp dword [esi + 0x14], 8
jb 0x10039068
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10039070
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10039717
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 0x100390a2
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.1003e790
add esp, 8
test eax, eax
je 0x10039145
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 0x100390d7
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.1003e790
add esp, 8
lea ecx, [ebp - 0x40]
test eax, eax
je 0x10039140
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.100257d0
add esp, 0x10
test eax, eax
jne 0x10039152
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1003911c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x1003912b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10039133
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x40]
call fcn.10004470
lea ecx, [ebp - 0x58]
call fcn.10004470
jmp 0x10039717
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.10005540
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.1002c860
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete bl
cmp edx, 0x10
jb 0x100391de
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100391d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039735
push edx
push ecx
call fcn.1002f4a1
add esp, 8
test bl, bl
jne 0x100393e3
lea ecx, [ebp - 0xac]
call fcn.100370d0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xac]
call fcn.10037b90
test al, al
je 0x100393d8
call fcn.10004ab0
mov ecx, eax
test ecx, ecx
je 0x1003973a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x1009eb40
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.10010440
test al, al
jne 0x10039253
push 0
push 0x1009eb40
lea ecx, [ebp - 0x8c]
call fcn.1000aad0
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.10005540
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.100379e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x100392d6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100392cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039744
push edx
push ecx
call fcn.1002f4a1
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 0x1003930c
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.10005540
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.1002c860
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 0x100393aa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003939a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039749
push edx
push ecx
call fcn.1002f4a1
mov al, byte [ebp - 0x89]
add esp, 8
test al, al
je 0x100393f0
lea ecx, [ebp - 0x88]
call fcn.10004470
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 0x100393d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.10034c20
lea ecx, [ebp - 0x70]
call fcn.10004470
jmp 0x1003913d
lea ecx, [ebp - 0xc4]
call fcn.100370d0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xc4]
call fcn.10037b90
test al, al
jne 0x10039422
lea ecx, [ebp - 0xc4]
call fcn.10034c20
jmp 0x100393ae
call fcn.10004ab0
mov ecx, eax
test ecx, ecx
je 0x1003974e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x1009eb40
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call fcn.10010440
test al, al
jne 0x10039469
push 0
push 0x1009eb40
lea ecx, [ebp - 0x8c]
call fcn.1000aad0
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.10005540
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.100379e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x100394ec
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100394e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039758
push edx
push ecx
call fcn.1002f4a1
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 0x1003951f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x1003975d
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 0x1003957f
cmp word [ecx], 0
je 0x1003957b
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
mov word [ebp - 0x8a], ax
mov eax, dword [ebp - 0x90]
jne 0x1003957f
add ecx, 4
add edx, 4
cmp word [ebp - 0x8a], 0
jne 0x10039540
xor ecx, ecx
jmp 0x10039584
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jg 0x1003958e
cmp dword [eax - 0xc], 0
jne 0x100395bf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10039598
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x100395a7
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100395af
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 0x100395d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc4]
call fcn.10034c20
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x1003961c
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039612
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039767
push edx
push ecx
call fcn.1002f4a1
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 0x10039650
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.10034c20
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x1003968f
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039685
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003976c
push edx
push ecx
call fcn.1002f4a1
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 0x100396d5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100396cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039771
push edx
push ecx
call fcn.1002f4a1
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 0x10039717
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003970d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039776
push edx
push ecx
call fcn.1002f4a1
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.1002f820
mov esp, ebp
pop ebp
ret 8
call fcn.10062769
push 0x80004005
call fcn.100087a0
call fcn.10062769
call fcn.10062769
push 0x80004005
call fcn.100087a0
call fcn.10062769
push 0x80004005
call fcn.100087a0
call fcn.10062769
call fcn.10062769
call fcn.10062769
call fcn.10062769
int3