Function at 0x4cb800
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8c
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0xa88], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x24], eax
cmp byte [ebp + 0xc], 0
mov eax, dword [0x5c6138]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], edi
jne 0x4cb855
lea ebx, [edi + 3]
jmp 0x4cb85e
xor ebx, ebx
cmp byte [ebp + 0x10], bl
setne bl
inc ebx
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.00439b40
cmp byte [ebp + 0xc], 0
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 0x104
lea eax, [esp + 0x484]
push eax
sete al
movzx eax, al
push eax
push esi
mov esi, dword [esp + 0x30]
push 0
push esi
push ebx
call fcn.004ca300
test eax, eax
je 0x4cb8c7
test esi, esi
je 0x4cb8ab
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa88]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x18
test esi, esi
je 0x4cb8d5
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov bl, byte [ebp + 0x10]
lea eax, [esp + 0x478]
mov dword [esp + 0x18], eax
test bl, bl
je 0x4cb9d6
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x688]
push eax
lea eax, [esp + 0x484]
push eax
push dword [ebp + 0x18]
push 2
call fcn.004caf90
test al, al
je 0x4cb9d2
lea eax, [esp + 0x680]
push eax
lea ecx, [esp + 0x88c]
call fcn.004d0310
add esp, 4
lea ecx, [esp + 0x888]
push str..xml
call fcn.0054e900
add esp, 4
lea ecx, [esp + 0x270]
mov edx, 0x104
call fcn.0050a320
test al, al
je 0x4cb96c
push 0x592c70
mov edx, 0x104
lea ecx, [esp + 0x274]
call fcn.0052fae0
add esp, 4
push 0x58b2cc
mov edx, 0x104
lea ecx, [esp + 0x274]
call fcn.0052fae0
add esp, 4
lea eax, [esp + 0x888]
mov edx, 0x104
lea ecx, [esp + 0x270]
push eax
call fcn.0052fae0
add esp, 4
lea edx, [esp + 0x680]
lea ecx, [esp + 0x270]
call fcn.004cedd0
test eax, eax
jne 0x4cb9d2
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x270]
mov esi, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
jmp 0x4cb9db
mov edi, dword [esp + 0xc]
mov esi, 1
mov edx, 0x104
lea ecx, [esp + 0x68]
call fcn.0050a320
test al, al
je 0x4cba03
push 0x592c70
mov edx, 0x104
lea ecx, [esp + 0x6c]
call fcn.0052fae0
add esp, 4
push 0x58b2cc
mov edx, 0x104
lea ecx, [esp + 0x6c]
call fcn.0052fae0
add esp, 4
lea eax, [esp + 0x478]
lea ecx, [esp + 0x680]
push eax
call fcn.004d0310
add esp, 4
lea ecx, [esp + 0x680]
push 0x58516c
call fcn.0054e900
add esp, 4
lea eax, [esp + 0x680]
mov edx, 0x104
lea ecx, [esp + 0x68]
push eax
call fcn.0052fae0
mov bh, byte [ebp + 0xc]
add esp, 4
test bh, bh
je 0x4cba7f
test bl, bl
jne 0x4cba7f
push 0
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4cba99
sub esp, 0xc
lea eax, [esp + 0x74]
lea edx, [esp + 0x24]
mov ecx, esi
push 0
push 9
push eax
call fcn.004cf130
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bh, bh
jne 0x4cbaad
lea eax, [esp + 0x478]
push eax
call esi
cmp dword [esp + 0x14], 2
jne 0x4cbabe
lea eax, [esp + 0x270]
push eax
call esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4cbb74
mov eax, dword [esi + 0xec]
mov dword [esp + 0xc], eax
test bl, bl
je 0x4cbb29
test edi, edi
je 0x4cbb29
mov edx, dword [edi + 0xec]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 0x20
push eax
push str.START
mov ecx, edi
call fcn.005316b0
mov ebx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x4cbb2b
cmp dword [esp + 0x10], eax
je 0x4cbb2b
lea eax, [esp + 0x28]
mov edx, ebx
push eax
push str.COMPARE_START
mov ecx, esi
call fcn.00531bf0
add esp, 8
jmp 0x4cbb2b
mov ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4cbb49
mov edx, dword [esi + 0xec]
mov ecx, esi
push eax
push str.USERDATA
call fcn.00531bf0
add esp, 8
push str..xml
lea ecx, [esp + 0x6c]
call fcn.0054e900
add esp, 4
lea eax, [esp + 0x68]
mov edx, ebx
mov ecx, esi
push eax
call fcn.00533e20
add esp, 4
push esi
call fcn.00532e00
add esp, 4
test edi, edi
je 0x4cbb81
push edi
call fcn.00532e00
add esp, 4
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1db0]
test ecx, ecx
je 0x4cbb96
mov eax, dword [ecx]
push 0x38
call dword [eax + 0x20]
mov ecx, dword [ebx + 0x1db0]
test ecx, ecx
je 0x4cbba7
mov eax, dword [ecx]
push 4
call dword [eax + 0x20]
mov ecx, dword [esp + 0xa94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x18