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

Disassembly:
push 0xffffffffffffffff
push 0x602ea1
mov eax, dword fs:[0]
push eax
sub esp, 0x190
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b4]
mov eax, dword [eax]
xor esi, esi
sub eax, 0x10
mov dword [esp + 0x28], esi
call fcn.0040a210
lea edx, [eax + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1ac], esi
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x5c57a1
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x5c58f6
cmp ecx, eax
jg 0x5c58f6
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x5c57a1
push 0x5c
lea edi, [esp + 0x1c]
call fcn.0040af90
lea edi, [esp + 0x14]
call fcn.0047ac70
mov byte [esp + 0x1ac], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x5c57e1
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x5c58f6
cmp ecx, eax
jg 0x5c58f6
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x5c57e1
push 0x5c
call fcn.0040af90
push 5
push 0x640498
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
lea edx, [esp + 0x44]
push edx
xor edi, edi
call fcn.0050f180
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str.OPTIONS.INI
mov byte [esp + 0x1b4], 2
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x1ac], 3
mov ecx, dword [eax]
lea edx, [esp + 0x44]
call fcn.0050f300
mov byte [esp + 0x1ac], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5c5858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1ac], 4
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x1c]
push ecx
push 0x6404a4
mov ecx, str.EUDC
lea edx, [esp + 0x4c]
mov byte [esp + 0x1b4], 5
call fcn.0050fa60
test eax, eax
jne 0x5c58bb
lea esi, [esp + 0x1c]
call fcn.004036c0
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x5c5900
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
lea ebx, [esp + 0x1c]
call fcn.0041eb50
mov eax, dword [eax]
add esp, 8
push eax
mov dword [esp + 0x2c], 1
call ebp
test eax, eax
je 0x5c5900
xor bl, bl
jmp 0x5c5902
push 0x80070057
call fcn.00403650
mov bl, 1
test byte [esp + 0x28], 1
je 0x5c592e
mov eax, dword [esp + 0x40]
and dword [esp + 0x28], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c592e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x5c59ec
mov byte [esp + 0x1ac], 4
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c595a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1ac], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c597e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x1b0], 1
call fcn.0050f250
mov byte [esp + 0x1ac], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5c59b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1ac], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5e70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x5c5e70
lea ecx, [esp + 0x20]
push ecx
push 0x6404b8
mov ecx, str.EUDC
lea edx, [esp + 0x4c]
call fcn.0050fa60
test eax, eax
jne 0x5c5a15
lea esi, [esp + 0x20]
call fcn.004036c0
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
je 0x5c5a43
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
lea ebx, [esp + 0x1c]
call fcn.0041eb50
mov eax, dword [eax]
or dword [esp + 0x30], 2
add esp, 8
push eax
call ebp
test eax, eax
je 0x5c5a43
xor bl, bl
jmp 0x5c5a45
mov bl, 1
test byte [esp + 0x28], 2
je 0x5c5a6c
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5a6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x5c5a84
mov byte [esp + 0x1ac], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x5c5941
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
mov ebx, str.QQPYEUDC.TTE
call fcn.0040aab0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, str.QQPYEUDC.EUF
mov byte [esp + 0x1bc], 6
call fcn.0040aab0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x50]
push eax
lea ebx, [esp + 0x2c]
mov byte [esp + 0x1c4], 7
call fcn.0041eb50
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x1cc], 8
call fcn.0041eb50
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ebx, str.EUDC_MERGE.TTE
mov byte [esp + 0x1d4], 9
call fcn.0040aab0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x58]
push eax
mov ebx, str.EUDC_MERGE.EUF
mov byte [esp + 0x1dc], 0xa
call fcn.0040aab0
add esp, 0x30
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x1b0], 0xb
call fcn.005c5e90
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x90]
mov byte [esp + 0x1c0], 0xc
call fcn.005c9890
test al, al
lea eax, [esp + 0x13c]
jne 0x5c5d35
call fcn.005ca840
lea eax, [esp + 0xdc]
call fcn.005ca840
lea eax, [esp + 0x7c]
call fcn.005ca840
mov byte [esp + 0x1ac], 0xa
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5bb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ac], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5bdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ac], 8
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ac], 7
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5c2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ac], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5c55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ac], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5c7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1ac], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5ca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1ac], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x1b0], 1
call fcn.0050f250
mov byte [esp + 0x1ac], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5c5d03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1ac], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c5d2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x5c5e72
call fcn.005ca840
lea eax, [esp + 0xdc]
call fcn.005ca840
lea eax, [esp + 0x7c]
call fcn.005ca840
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x5c5dda
lea ecx, [esp + 0x2c]
call fcn.00403870
lea ecx, [esp + 0x24]
call fcn.00403870
lea ecx, [esp + 0x38]
call fcn.00403870
lea ecx, [esp + 0x3c]
call fcn.00403870
lea ecx, [esp + 0x30]
call fcn.00403870
lea ecx, [esp + 0x34]
call fcn.00403870
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1b0], 1
call fcn.0050f250
lea ecx, [esp + 0x14]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
xor al, al
jmp 0x5c5e72
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x5c5d67
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
lea ecx, [esp + 0x2c]
call fcn.00403870
lea ecx, [esp + 0x24]
call fcn.00403870
lea ecx, [esp + 0x38]
call fcn.00403870
lea ecx, [esp + 0x3c]
call fcn.00403870
lea ecx, [esp + 0x30]
call fcn.00403870
lea ecx, [esp + 0x34]
call fcn.00403870
lea ecx, [esp + 0x20]
call fcn.00403870
lea ecx, [esp + 0x1c]
call fcn.00403870
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1b0], 1
call fcn.0050f250
lea ecx, [esp + 0x14]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
mov al, 1
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret