Function at 0x54bc10
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x57
push 0
push 0
dec ecx
jne 0x54bc19
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
mov eax, dword [ebp - 8]
call fcn.00405bbc
mov eax, dword [ebp + 8]
call fcn.00405bbc
lea eax, [ebp - 0x38]
mov edx, dword [0x4c1a30]
call fcn.00406514
xor eax, eax
push ebp
push 0x54c2d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x39], 1
mov ecx, 0x54c2ec
mov dl, 1
mov eax, dword [0x551f78]
call fcn.00551fe0
mov dword [ebp - 0x48], eax
mov ecx, 0x54c304
mov dl, 1
mov eax, dword [0x551f78]
call fcn.00551fe0
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
mov edi, dword [eax]
xor ebx, ebx
call fcn.0054e1e0
xor eax, eax
push ebp
push 0x54c278
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x54bcea
mov esi, ebx
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
mov eax, dword [edi + 0x60]
mov eax, dword [eax + esi*4 + 4]
lea edx, [ebp - 0x260]
call fcn.004fe438
mov eax, dword [ebp - 0x260]
mov edx, dword [ebp - 4]
call fcn.00405b64
jne 0x54bce9
lea eax, [ebp - 0x38]
mov edx, dword [edi + 0x60]
lea edx, [edx + esi*4]
mov ecx, dword [0x4c1a30]
call fcn.00406740
inc ebx
mov eax, dword [edi + 0x60]
call fcn.00406d0c
cmp ebx, eax
jl 0x54bca9
mov eax, dword [edi + 0x60]
call fcn.00406d0c
cmp ebx, eax
jle 0x54bd0c
call fcn.00405140
jmp 0x54c27f
xor ebx, ebx
lea ecx, [ebp - 0x264]
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.00544064
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x18]
call fcn.004fe438
call fcn.00537e94
test al, al
je 0x54c1f4
xor ebx, ebx
lea ecx, [ebp - 0x268]
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.00544064
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x1c]
call fcn.004fe438
lea ecx, [ebp - 0x26c]
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.00544064
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x14]
call fcn.004fe438
jmp 0x54c1aa
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004fe830
push 0x201
lea eax, [ebp - 0x24d]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jbe 0x54bdb4
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x24d]
mov ecx, 0x201
call fcn.004059ac
jmp 0x54bdc2
mov byte [ebp - 0x39], 0
call fcn.00405140
jmp 0x54c27f
lea ecx, [ebp - 0x270]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004fe830
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0x10]
call fcn.004057d4
push 0x20
mov eax, dword [ebp - 0x10]
call fcn.00405bcc
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.0040b500
test al, al
jne 0x54beb4
push 0x20
lea ecx, [ebp - 0x274]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004fe830
mov eax, dword [ebp - 0x274]
call fcn.00405bcc
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x27c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004fe830
mov eax, dword [ebp - 0x27c]
call fcn.00405bcc
mov edx, eax
lea eax, [ebp - 0x278]
call fcn.00405934
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x284]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x1c]
call fcn.004fe830
mov eax, dword [ebp - 0x284]
call fcn.00405bcc
mov edx, eax
lea eax, [ebp - 0x280]
call fcn.00405934
mov eax, dword [ebp - 0x280]
mov cl, 1
pop edx
call fcn.0054446c
test al, al
je 0x54beb4
push 0x20
lea ecx, [ebp - 0x288]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004fe830
mov eax, dword [ebp - 0x288]
call fcn.00405bcc
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x10]
call fcn.0040b500
test al, al
je 0x54bee3
mov eax, dword [ebp - 0x10]
call fcn.0040b500
test al, al
je 0x54c16d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004feae4
test al, al
je 0x54c16d
call fcn.00537e94
test al, al
je 0x54bfb6
mov eax, dword [ebp - 0x44]
call fcn.00552190
test al, al
je 0x54bfb6
mov eax, dword [ebp - 0x10]
call fcn.0040b500
test al, al
je 0x54bfb6
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x10]
call fcn.00551394
test al, al
jne 0x54bf2c
call fcn.00537e78
test al, al
je 0x54bfb6
mov eax, dword [ebp - 0x48]
call fcn.0054b728
call fcn.005516a0
test al, al
jne 0x54bf47
mov eax, dword [ebp - 0x44]
call fcn.005525a8
jmp 0x54bf61
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
call fcn.0054b5d8
test al, al
je 0x54bf61
mov eax, dword [ebp - 0x44]
call fcn.005525a8
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
xor esi, esi
jmp 0x54bf79
push 0x64
call sub.kernel32.dll_Sleep_2
inc esi
mov eax, dword [ebp - 0x44]
call fcn.005521a4
test al, al
jne 0x54bf8a
cmp esi, 0x64
jl 0x54bf71
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
xor esi, esi
jmp 0x54bfa2
push 0x64
call sub.kernel32.dll_Sleep_2
inc esi
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x10]
call fcn.00551394
test al, al
je 0x54bfb6
cmp esi, 0x64
jl 0x54bf9a
xor esi, esi
xor eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x54bffc
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405bcc
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405bcc
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x54bfe6
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x4c], eax
jmp 0x54bfeb
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x54bffb
push 0x3e8
call sub.kernel32.dll_Sleep_2
inc esi
cmp esi, 7
jge 0x54c007
cmp dword [ebp - 0x4c], 0x20
je 0x54bfbf
test esi, esi
je 0x54bfbf
cmp dword [ebp - 0x4c], 0
je 0x54c16d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x20
je 0x54c0a9
cmp dword [ebp - 0x40], 5
je 0x54c0a9
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x290]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x54c314
call fcn.00486174
mov eax, dword [ebp - 0x290]
push eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x294], 0xb
lea edx, [ebp - 0x2a8]
mov ecx, 2
pop eax
call fcn.0040c558
mov eax, dword [ebp - 0x28c]
call fcn.0044d130
jmp 0x54c16d
mov eax, dword [0x55aa68]
mov byte [eax], 1
mov eax, dword [0x55a660]
cmp byte [eax], 1
je 0x54c0d7
mov eax, dword [0x55a660]
cmp byte [eax], 2
jne 0x54c0cf
mov eax, dword [0x55a660]
mov byte [eax], 5
jmp 0x54c0d7
mov eax, dword [0x55a660]
mov byte [eax], 4
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0054446c
test al, al
jne 0x54c16d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2b0]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x54c314
pop eax
call fcn.00486174
mov eax, dword [ebp - 0x2b0]
push eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x294], 0xb
lea edx, [ebp - 0x2a8]
mov ecx, 2
pop eax
call fcn.0040c558
mov eax, dword [ebp - 0x2ac]
call fcn.0044d130
inc ebx
lea ecx, [ebp - 0x2b4]
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.00544064
mov eax, dword [ebp - 0x2b4]
lea edx, [ebp - 0x14]
call fcn.004fe438
lea ecx, [ebp - 0x2b8]
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.00544064
mov eax, dword [ebp - 0x2b8]
lea edx, [ebp - 0x1c]
call fcn.004fe438
cmp dword [ebp - 0x14], 0
jne 0x54bd7c
mov eax, dword [ebp - 0x44]
call fcn.005521a4
test al, al
je 0x54c1f4
mov eax, dword [ebp - 0x44]
call fcn.00552774
test al, al
jne 0x54c1f4
lea ecx, [ebp - 0x2bc]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x54c33c
call fcn.00486174
mov eax, dword [ebp - 0x2bc]
call fcn.0044d130
mov eax, dword [ebp - 0x34]
call fcn.00405bcc
mov dword [ebp - 0x25c], eax
mov eax, dword [edi + 0x1c]
call fcn.00405bcc
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x28]
call fcn.00405bcc
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x25c]
call fcn.0054b8f8
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
xor ebx, ebx
jmp 0x54c244
push 0xfa
call sub.kernel32.dll_Sleep_2
inc ebx
mov eax, dword [ebp - 0x44]
call fcn.00552190
test al, al
jne 0x54c255
cmp ebx, 0x28
jl 0x54c239
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c27f
call fcn.0054e250
mov eax, dword [ebp - 0x48]
call fcn.004047e0
mov eax, dword [ebp - 0x44]
call fcn.004047e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c2d7
lea eax, [ebp - 0x2bc]
mov edx, 5
call fcn.00405760
lea eax, [ebp - 0x290]
mov edx, 0xd
call fcn.00405760
lea eax, [ebp - 0x38]
mov edx, dword [0x4c1a30]
call fcn.004065e4
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00405760
lea eax, [ebp + 8]
call fcn.0040573c
ret