Function at 0x5b0d70
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc8c6
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c0], 0
mov dword [ebp - 4], 3
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x524]
call fcn.005b0c40
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5b1266
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5a8], esp
lea edx, [ebp + 0x20]
push edx
call fcn.00408747
mov ecx, 0x6331cc
call fcn.005adb70
mov dword [ebp - 0x578], eax
cmp dword [ebp - 0x578], 0
jne 0x5b0e47
mov dword [ebp - 0x57c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00446ed7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.00446ed7
mov eax, dword [ebp - 0x57c]
jmp 0x5b13ce
lea ecx, [ebp - 0x51c]
call fcn.004bdcc0
mov byte [ebp - 4], 4
push 0x5f8c24
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x560], eax
mov edx, dword [ebp - 0x560]
mov dword [ebp - 0x584], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x584]
call fcn.00403f32
push eax
lea ecx, [ebp - 0x51c]
call fcn.004bdee0
mov dword [ebp - 0x588], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00403fae
cmp dword [ebp - 0x588], 0
je 0x5b1247
lea ecx, [ebp - 0x51c]
call fcn.004bde30
test eax, eax
jne 0x5b1234
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x51c]
call fcn.004bdd50
mov dword [ebp - 0x58c], eax
mov ecx, dword [ebp - 0x58c]
mov dword [ebp - 0x594], ecx
mov byte [ebp - 4], 6
push 0x5f8c6c
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x590], eax
mov ecx, dword [ebp - 0x590]
mov dword [ebp - 0x52c], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x594]
call fcn.0041f757
push eax
mov edx, dword [ebp - 0x52c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0044a32b
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.00403fae
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x530]
call fcn.0040b035
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5ac], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00408747
lea ecx, [ebp - 0x524]
call fcn.005b0c60
mov byte [ebp - 0x51d], al
movzx eax, byte [ebp - 0x51d]
test eax, eax
je 0x5b0f98
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00403fae
jmp 0x5b1234
lea ecx, [ebp - 0x544]
push ecx
lea ecx, [ebp - 0x51c]
call fcn.004bdd50
mov dword [ebp - 0x534], eax
mov edx, dword [ebp - 0x534]
mov dword [ebp - 0x53c], edx
mov byte [ebp - 4], 0xb
push 0x5f8c68
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x538], eax
mov edx, dword [ebp - 0x538]
mov dword [ebp - 0x540], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x53c]
call fcn.0041f757
push eax
mov eax, dword [ebp - 0x540]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0044a32b
add esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.00403fae
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x544]
call fcn.0040b035
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5b0], esp
lea edx, [ebp + 0x48]
push edx
call fcn.004c0300
mov dword [ebp - 0x5b4], eax
mov byte [ebp - 4], 0x10
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x5b8], esp
lea eax, [ebp + 0x3c]
push eax
call fcn.004c0300
mov dword [ebp - 0x5bc], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp + 0x38]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c4], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00408747
mov dword [ebp - 0x598], eax
mov byte [ebp - 4], 0x12
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x59c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.00408747
mov byte [ebp - 4], 0xf
call fcn.005b0d70
add esp, 0x4c
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x5b121c
cmp dword [ebp + 0x38], 0
je 0x5b11ad
lea ecx, [ebp - 0x564]
push ecx
lea ecx, [ebp - 0x51c]
call fcn.004bdd50
mov dword [ebp - 0x54c], eax
mov edx, dword [ebp - 0x54c]
mov dword [ebp - 0x554], edx
mov byte [ebp - 4], 0x13
push 0x5f8c74
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.0044a2d9
add esp, 0xc
mov dword [ebp - 0x550], eax
mov edx, dword [ebp - 0x550]
mov dword [ebp - 0x558], edx
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x554]
call fcn.0041f757
push eax
mov eax, dword [ebp - 0x558]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0044a32b
add esp, 0xc
mov dword [ebp - 0x55c], eax
mov edx, dword [ebp - 0x55c]
mov dword [ebp - 0x580], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x580]
push eax
lea ecx, [ebp + 0x48]
call fcn.00446e8b
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa0]
call fcn.00403fae
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xb8]
call fcn.00403fae
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x564]
call fcn.0040b035
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00403fae
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00403fae
jmp 0x5b1234
mov dword [ebp - 0x568], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00403fae
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00403fae
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x51c]
call fcn.004bdd00
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00446ed7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.00446ed7
mov eax, dword [ebp - 0x568]
jmp 0x5b13ce
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00403fae
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00403fae
lea ecx, [ebp - 0x51c]
call fcn.004be040
test eax, eax
jne 0x5b0eb7
lea ecx, [ebp - 0x51c]
call fcn.004be0a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x51c]
call fcn.004bdd00
jmp 0x5b138b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5a0], esp
lea edx, [ebp + 8]
push edx
call fcn.00408747
lea ecx, [ebp - 0x524]
call fcn.005b0c60
mov byte [ebp - 0x51e], al
movzx eax, byte [ebp - 0x51e]
test eax, eax
je 0x5b12de
mov dword [ebp - 0x56c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00446ed7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.00446ed7
mov eax, dword [ebp - 0x56c]
jmp 0x5b13ce
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5b130f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5a4], esp
lea edx, [ebp + 0x20]
push edx
call fcn.00408747
mov ecx, 0x6331cc
call fcn.005adc60
push 0
lea ecx, [ebp + 0x20]
call fcn.00403f32
push eax
lea ecx, [ebp + 8]
call fcn.00403f32
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x528], eax
cmp dword [ebp - 0x528], 1
je 0x5b1344
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x48]
call fcn.00454940
mov ecx, dword [ebp - 0x528]
mov dword [ebp - 0x570], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00446ed7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.00446ed7
mov eax, dword [ebp - 0x570]
jmp 0x5b13ce
mov dword [ebp - 0x574], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00403fae
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
call fcn.00403fae
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00446ed7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.00446ed7
mov eax, dword [ebp - 0x574]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00542347
mov esp, ebp
pop ebp
ret