Function at 0x5c60e0
Capabilities:
Check if file exists
Copy file
Get file attributes
Get file size
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x666162
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x699d0
call fcn.006218a0
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x699e0], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0xaf9], bl
jne 0x5c69ef
cmp byte [esi + 0xafa], bl
jne 0x5c69ef
mov eax, dword [esi + 0x4f8]
cmp eax, ebx
je 0x5c614e
push eax
lea ecx, [esi + 0x20]
call fcn.005d0550
push esi
call fcn.004b7e90
add esp, 4
mov edx, dword [esi + 0x4f8]
cmp edx, ebx
jne 0x5c64e5
cmp byte [esi + 0xaea], bl
je 0x5c64e5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
push ebx
mov ecx, dword [esi + 0x4c]
push ecx
push 0x678ea8
lea ecx, [ebp - 0x2c]
call fcn.004021b0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c619d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5c630c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c61b7
lea eax, [ebp - 0x28]
push 0x5c
add eax, 6
push eax
call fcn.00621ce0
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x5c630c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c61d9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov ecx, eax
jne 0x5c61f2
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c61fc
lea eax, [ebp - 0x28]
mov edx, edi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5c6212
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004ab580
add esp, 8
test eax, eax
jne 0x5c62eb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5c622f
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004ab760
add esp, 8
test eax, eax
jne 0x5c62eb
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
mov byte [ebp - 4], 3
push ebx
push ebx
lea edx, [ebp - 0x699d0]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [ebp - 0x699d0]
push ecx
mov edx, dword [0x75ed3c]
push edx
lea ecx, [ebp - 0x38]
call fcn.004021b0
mov eax, dword [ebp - 0x699d0]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
jne 0x5c62a6
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5c62b0
lea eax, [ebp - 0x34]
push 0x30
push ecx
push eax
push ebx
call fcn.00473900
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov eax, 0x7546
jmp 0x5c6a86
push 0x5c
add edi, 2
push edi
call fcn.00621ce0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
jmp 0x5c61c7
cmp dword [esi + 0xae0], ebx
je 0x5c64d7
cmp dword [esi + 0xae4], ebx
je 0x5c64d7
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x699d4]
push edx
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
push str.SoftwareDownloadManagerGrabberStsProjects_
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
cmp eax, ebx
jne 0x5c64d7
mov eax, dword [ebp - 0x699d4]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea ecx, [ebp - 0x699d0]
call fcn.00402500
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xae0]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
lea edx, [ebp - 0x699d0]
push edx
call fcn.00402f70
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x699d4]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
mov edx, dword [ebp - 0x699d0]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x5c64c6
mov eax, dword [ebp - 0x699d4]
push eax
call ebx
mov ecx, dword [esi + 0xae4]
push ecx
mov edx, dword [esi + 0xae0]
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
lea eax, [ebp - 0x699d0]
push eax
call fcn.00402f70
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x699d4]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
mov eax, dword [ebp - 0x699d0]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x5c64c6
mov edx, dword [esi + 0x50]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5c6424
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
push edx
push 1
push 0
push 0x687b8c
mov edx, dword [ebp - 0x699d4]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call edi
mov ecx, dword [esi + 0x4c]
mov eax, ecx
lea edx, [eax + 2]
lea esp, [esp]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x5c6460
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 1]
push eax
push ecx
push 1
push 0
push str.LocalPath
mov ecx, dword [ebp - 0x699d4]
push ecx
call edi
lea ecx, [esi + 0x530]
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5c6492
sub eax, ebx
sar eax, 1
lea edx, [eax + eax + 1]
push edx
push ecx
push 1
push 0
push str.LogFileName
mov eax, dword [ebp - 0x699d4]
push eax
call edi
mov ecx, dword [ebp - 0x699d4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x699d0]
call fcn.00402570
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x5c6519
mov al, byte [esi + 0xad0]
test al, al
je 0x5c64f7
mov ecx, dword [esi + 0xae4]
jmp 0x5c64f9
xor ecx, ecx
test al, al
je 0x5c6505
mov eax, dword [esi + 0xae0]
jmp 0x5c6507
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005d3870
mov byte [esi + 0xaea], 1
lea ecx, [esi + 0x20]
mov edx, dword [esi + 0x4f8]
push edx
call fcn.005cef90
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x5c6547
mov ecx, dword [esi + 0x4f8]
push ecx
push 0x13cd
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0xacc], ebx
mov dword [esi + 0xadc], ebx
push 1
mov ecx, esi
call fcn.005b6cf0
lea ecx, [esi + 0x52c]
call fcn.0056abc0
cmp byte [esi + 0xaee], 0
jne 0x5c6591
cmp dword [esi + 4], ebx
jne 0x5c6589
cmp dword [esi + 8], ebx
jne 0x5c6589
mov ecx, esi
call fcn.005b7930
test eax, eax
je 0x5c6589
mov al, 1
jmp 0x5c658b
xor al, al
mov byte [esi + 0xaed], al
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x5c65b2
lea edx, [eax + 1]
jmp 0x5c65a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c65a0
sub eax, edx
mov dword [ebp - 0x18], eax
jne 0x5c66ee
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5c65c3
cmp eax, 1
jne 0x5c66ee
xor bl, bl
mov byte [ebp - 0x699d5], bl
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5c6601
push str._simtelnet_
push eax
call fcn.00621810
add esp, 8
test eax, eax
je 0x5c6601
mov eax, dword [esi + 0x20]
push str.simtel.net
push eax
call fcn.00621810
add esp, 8
test eax, eax
jne 0x5c6601
mov bl, 1
mov byte [ebp - 0x699d5], bl
test dword [esi + 0x17c], 0x80000
jne 0x5c66ee
test bl, bl
jne 0x5c66ee
cmp dword [esi + 0xad4], 0
jne 0x5c66ee
lea ecx, [ebp - 0x699d0]
call fcn.00402500
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x34]
cmp eax, 0x50
jne 0x5c6643
cmp dword [esi + 0x44], 1
je 0x5c6650
cmp eax, 0x1bb
jne 0x5c6663
cmp dword [esi + 0x44], 2
jne 0x5c6663
push 0x67997c
lea edx, [ebp - 0x1c]
push edx
call fcn.0062304b
add esp, 8
jmp 0x5c6675
push eax
push str.:_ld
lea eax, [ebp - 0x1c]
push eax
call fcn.0062304b
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
mov edx, eax
jne 0x5c6685
mov edx, 0x67997c
jmp 0x5c668f
cmp byte [eax], 0x2f
mov ecx, 0x67997c
je 0x5c6694
mov ecx, 0x67e070
cmp dword [esi + 0x44], 1
mov eax, 0x67a490
je 0x5c66a4
mov eax, 0x679be4
push edx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0x20]
push edx
push eax
push str._s:___s_s_s_s
lea eax, [ebp - 0x699d0]
push eax
call fcn.00402f70
add esp, 0x1c
mov ecx, dword [ebp - 0x699d0]
push ecx
mov ecx, esi
call fcn.005b7670
mov byte [esi + 0x372], 1
mov byte [esi + 0x373], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x699d0]
call fcn.00402570
mov byte [esi + 0x371], 0
xor ebx, ebx
mov dword [esi + 0xcc], ebx
mov byte [ebp - 0x699c9], bl
cmp dword [esi + 0xb14], ebx
je 0x5c6713
mov eax, dword [esi + 0xb14]
jmp 0x5c6719
lea eax, [esi + 0xb18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5c6720
sub eax, edx
sar eax, 1
je 0x5c699f
cmp dword [esi + 0xb14], ebx
je 0x5c6745
mov eax, dword [esi + 0xb14]
jmp 0x5c674b
lea eax, [esi + 0xb18]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5c699f
lea edx, [ebp - 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x500], eax
mov dword [esi + 0x504], ebx
cmp eax, 0xffffffff
jne 0x5c67a1
cmp ebx, ebx
jne 0x5c67a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5c67a1
mov dword [esi + 0x500], ebx
mov dword [esi + 0x504], ebx
jmp 0x5c67ba
push 1
push ebx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00624ab0
add dword [esi + 0x500], eax
adc dword [esi + 0x504], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005db2a0
push fcn.0057eb20
push 0x20
push 0x3488
lea ecx, [ebp - 0x699c8]
push ecx
call fcn.00622869
mov byte [ebp - 4], 6
mov edx, dword [esi]
push edx
lea eax, [esi + 0x52c]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x699c8]
push eax
lea ecx, [esi + 0x95c]
push ecx
lea ecx, [ebp - 0x8c8]
call fcn.005911e0
mov byte [ebp - 4], 7
mov dword [ebp - 0x668], esi
lea edi, [esi + 0x10]
mov dword [ebp - 0x8b8], edi
mov dword [ebp - 0x7c8], edi
lea eax, [esi + 0x14]
mov dword [ebp - 0x8b4], eax
lea edx, [esi + 0x18]
mov dword [ebp - 0x8b0], edx
mov eax, dword [esi + 0xad4]
push eax
mov ecx, dword [esi + 0xad8]
push ecx
mov edx, dword [esi + 0xae4]
push edx
mov eax, dword [esi + 0xae0]
push eax
xor ecx, ecx
cmp byte [esi + 0xad0], cl
sete cl
push ecx
mov edx, dword [esi + 0x4f8]
push edx
lea ecx, [ebp - 0x8c8]
call fcn.005b4f20
push 1
mov eax, dword [esi + 0x504]
push eax
mov ecx, dword [esi + 0x500]
push ecx
lea ecx, [ebp - 0x8c8]
call fcn.005b5210
cmp byte [esi + 0xad0], 0
je 0x5c68aa
mov dword [esi + 0xacc], ebx
mov dword [ebp - 0x699dc], ebx
mov byte [ebp - 0x699c9], 1
jmp 0x5c696b
cmp dword [esi + 0xb14], ebx
je 0x5c68ba
mov eax, dword [esi + 0xb14]
jmp 0x5c68c0
lea eax, [esi + 0xb18]
push ebx
mov edx, dword [esi + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x5c6959
mov ebx, dword [esi + 0x500]
mov eax, dword [esi + 0x504]
push eax
push ebx
lea ecx, [ebp - 0x8c8]
call fcn.005770d0
mov dword [esi + 0xacc], 0
mov dword [esi + 0x508], ebx
mov eax, dword [esi + 0x504]
mov dword [esi + 0x50c], eax
push 0
lea ecx, [ebp - 0x8c8]
call fcn.005b3f10
mov dword [ebp - 0x699dc], 0
mov byte [ebp - 0x699c9], 1
mov dword [esi + 0x954], 3
cmp dword [esi + 0x5c], 0
je 0x5c6959
mov edi, dword [edi]
test edi, edi
je 0x5c6950
push 0
push 0x1472
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005bc060
push 0
push 0x67997c
lea ecx, [esi + 0xb14]
call fcn.00401980
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c8]
call fcn.0058fd80
mov byte [ebp - 4], 0
push fcn.005db2a0
push 0x20
push 0x3488
lea eax, [ebp - 0x699c8]
push eax
call fcn.00620714
cmp byte [ebp - 0x699c9], 0
jne case.default.0x5c69a7
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5c69a7
jmp dword [eax*4 + 0x5c6aa4]
mov ecx, esi
call fcn.005c58d0
jmp 0x5c69d0
mov ecx, esi
call fcn.005c4d90
jmp 0x5c69d0
mov ecx, esi
call fcn.005c53b0
jmp 0x5c69d0
mov ecx, esi
call fcn.005c55e0
mov dword [ebp - 0x699dc], eax
mov byte [esi + 0x377], 0
mov byte [esi + 0x1aa], 0
mov eax, dword [ebp - 0x699dc]
jmp 0x5c6a86
mov byte [esi + 0xaf9], bl
cmp byte [esi + 0xafa], bl
jne 0x5c6a34
mov ecx, dword [esi + 0x34c]
cmp ecx, 4
je 0x5c6a24
mov eax, dword [esi + 0x354]
cmp eax, 0x40
je 0x5c6a24
cmp eax, 0x800
je 0x5c6a24
cmp ecx, 8
je 0x5c6a24
cmp ecx, 0x40
jne 0x5c6a34
cmp dword [esi + 0x340], ebx
je 0x5c6a53
cmp dword [esi + 0x344], ebx
je 0x5c6a53
push 5
mov ecx, esi
call fcn.005b6cf0
cmp byte [esi + 0xafa], bl
jne 0x5c6a4c
mov ecx, esi
call fcn.005c0b20
mov ecx, esi
call fcn.005c0520
xor eax, eax
jmp 0x5c6a86
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062016f
mov esp, ebp
pop ebp
ret