Function at 0x5c66e0
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 0x666b62
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x699d0
call fcn.006222c0
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 0x5c6fef
cmp byte [esi + 0xafa], bl
jne 0x5c6fef
mov eax, dword [esi + 0x4f8]
cmp eax, ebx
je 0x5c674e
push eax
lea ecx, [esi + 0x20]
call fcn.005d0ee0
push esi
call fcn.004b8470
add esp, 4
mov edx, dword [esi + 0x4f8]
cmp edx, ebx
jne 0x5c6ae5
cmp byte [esi + 0xaea], bl
je 0x5c6ae5
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.004021a0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c679d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5c690c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c67b7
lea eax, [ebp - 0x28]
push 0x5c
add eax, 6
push eax
call fcn.00622700
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x5c690c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c67d9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402170
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov ecx, eax
jne 0x5c67f2
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c67fc
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 0x5c6812
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004ab900
add esp, 8
test eax, eax
jne 0x5c68eb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5c682f
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004abae0
add esp, 8
test eax, eax
jne 0x5c68eb
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.004021a0
mov eax, dword [ebp - 0x699d0]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
jne 0x5c68a6
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5c68b0
lea eax, [ebp - 0x34]
push 0x30
push ecx
push eax
push ebx
call fcn.00473ae0
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 0x5c7086
push 0x5c
add edi, 2
push edi
call fcn.00622700
add esp, 8
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
jmp 0x5c67c7
cmp dword [esi + 0xae0], ebx
je 0x5c6ad7
cmp dword [esi + 0xae4], ebx
je 0x5c6ad7
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 0x5c6ad7
mov eax, dword [ebp - 0x699d4]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea ecx, [ebp - 0x699d0]
call fcn.004024f0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xae0]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
lea edx, [ebp - 0x699d0]
push edx
call fcn.00402f60
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 0x5c6ac6
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.00402f60
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 0x5c6ac6
mov edx, dword [esi + 0x50]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5c6a24
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
push edx
push 1
push 0
push 0x687bf4
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 0x5c6a60
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 0x5c6a92
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.00402560
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x5c6b19
mov al, byte [esi + 0xad0]
test al, al
je 0x5c6af7
mov ecx, dword [esi + 0xae4]
jmp 0x5c6af9
xor ecx, ecx
test al, al
je 0x5c6b05
mov eax, dword [esi + 0xae0]
jmp 0x5c6b07
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005d4280
mov byte [esi + 0xaea], 1
lea ecx, [esi + 0x20]
mov edx, dword [esi + 0x4f8]
push edx
call fcn.005cf8e0
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x5c6b47
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.005b72d0
lea ecx, [esi + 0x52c]
call fcn.0056b170
cmp byte [esi + 0xaee], 0
jne 0x5c6b91
cmp dword [esi + 4], ebx
jne 0x5c6b89
cmp dword [esi + 8], ebx
jne 0x5c6b89
mov ecx, esi
call fcn.005b7f10
test eax, eax
je 0x5c6b89
mov al, 1
jmp 0x5c6b8b
xor al, al
mov byte [esi + 0xaed], al
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x5c6bb2
lea edx, [eax + 1]
jmp 0x5c6ba0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c6ba0
sub eax, edx
mov dword [ebp - 0x18], eax
jne 0x5c6cee
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5c6bc3
cmp eax, 1
jne 0x5c6cee
xor bl, bl
mov byte [ebp - 0x699d5], bl
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5c6c01
push str._simtelnet_
push eax
call fcn.00622230
add esp, 8
test eax, eax
je 0x5c6c01
mov eax, dword [esi + 0x20]
push str.simtel.net
push eax
call fcn.00622230
add esp, 8
test eax, eax
jne 0x5c6c01
mov bl, 1
mov byte [ebp - 0x699d5], bl
test dword [esi + 0x17c], 0x80000
jne 0x5c6cee
test bl, bl
jne 0x5c6cee
cmp dword [esi + 0xad4], 0
jne 0x5c6cee
lea ecx, [ebp - 0x699d0]
call fcn.004024f0
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x34]
cmp eax, 0x50
jne 0x5c6c43
cmp dword [esi + 0x44], 1
je 0x5c6c50
cmp eax, 0x1bb
jne 0x5c6c63
cmp dword [esi + 0x44], 2
jne 0x5c6c63
push 0x67997c
lea edx, [ebp - 0x1c]
push edx
call fcn.00623a6b
add esp, 8
jmp 0x5c6c75
push eax
push str.:_ld
lea eax, [ebp - 0x1c]
push eax
call fcn.00623a6b
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
mov edx, eax
jne 0x5c6c85
mov edx, 0x67997c
jmp 0x5c6c8f
cmp byte [eax], 0x2f
mov ecx, 0x67997c
je 0x5c6c94
mov ecx, 0x67e070
cmp dword [esi + 0x44], 1
mov eax, 0x67a490
je 0x5c6ca4
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.00402f60
add esp, 0x1c
mov ecx, dword [ebp - 0x699d0]
push ecx
mov ecx, esi
call fcn.005b7c50
mov byte [esi + 0x372], 1
mov byte [esi + 0x373], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x699d0]
call fcn.00402560
mov byte [esi + 0x371], 0
xor ebx, ebx
mov dword [esi + 0xcc], ebx
mov byte [ebp - 0x699c9], bl
cmp dword [esi + 0xb14], ebx
je 0x5c6d13
mov eax, dword [esi + 0xb14]
jmp 0x5c6d19
lea eax, [esi + 0xb18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5c6d20
sub eax, edx
sar eax, 1
je 0x5c6f9f
cmp dword [esi + 0xb14], ebx
je 0x5c6d45
mov eax, dword [esi + 0xb14]
jmp 0x5c6d4b
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 0x5c6f9f
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 0x5c6da1
cmp ebx, ebx
jne 0x5c6da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5c6da1
mov dword [esi + 0x500], ebx
mov dword [esi + 0x504], ebx
jmp 0x5c6dba
push 1
push ebx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.006254d0
add dword [esi + 0x500], eax
adc dword [esi + 0x504], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005dbc90
push fcn.0057f130
push 0x20
push 0x3488
lea ecx, [ebp - 0x699c8]
push ecx
call fcn.00623289
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.005917e0
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.005b54f0
push 1
mov eax, dword [esi + 0x504]
push eax
mov ecx, dword [esi + 0x500]
push ecx
lea ecx, [ebp - 0x8c8]
call fcn.005b57e0
cmp byte [esi + 0xad0], 0
je 0x5c6eaa
mov dword [esi + 0xacc], ebx
mov dword [ebp - 0x699dc], ebx
mov byte [ebp - 0x699c9], 1
jmp 0x5c6f6b
cmp dword [esi + 0xb14], ebx
je 0x5c6eba
mov eax, dword [esi + 0xb14]
jmp 0x5c6ec0
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 0x5c6f59
mov ebx, dword [esi + 0x500]
mov eax, dword [esi + 0x504]
push eax
push ebx
lea ecx, [ebp - 0x8c8]
call fcn.005776c0
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.005b44e0
mov dword [ebp - 0x699dc], 0
mov byte [ebp - 0x699c9], 1
mov dword [esi + 0x954], 3
cmp dword [esi + 0x5c], 0
je 0x5c6f59
mov edi, dword [edi]
test edi, edi
je 0x5c6f50
push 0
push 0x1472
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005bc640
push 0
push 0x67997c
lea ecx, [esi + 0xb14]
call fcn.00401970
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c8]
call fcn.00590380
mov byte [ebp - 4], 0
push fcn.005dbc90
push 0x20
push 0x3488
lea eax, [ebp - 0x699c8]
push eax
call fcn.00621132
cmp byte [ebp - 0x699c9], 0
jne case.default.0x5c6fa7
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5c6fa7
jmp dword [eax*4 + 0x5c70a4]
mov ecx, esi
call fcn.005c5ed0
jmp 0x5c6fd0
mov ecx, esi
call fcn.005c5390
jmp 0x5c6fd0
mov ecx, esi
call fcn.005c59b0
jmp 0x5c6fd0
mov ecx, esi
call fcn.005c5be0
mov dword [ebp - 0x699dc], eax
mov byte [esi + 0x377], 0
mov byte [esi + 0x1aa], 0
mov eax, dword [ebp - 0x699dc]
jmp 0x5c7086
mov byte [esi + 0xaf9], bl
cmp byte [esi + 0xafa], bl
jne 0x5c7034
mov ecx, dword [esi + 0x34c]
cmp ecx, 4
je 0x5c7024
mov eax, dword [esi + 0x354]
cmp eax, 0x40
je 0x5c7024
cmp eax, 0x800
je 0x5c7024
cmp ecx, 8
je 0x5c7024
cmp ecx, 0x40
jne 0x5c7034
cmp dword [esi + 0x340], ebx
je 0x5c7053
cmp dword [esi + 0x344], ebx
je 0x5c7053
push 5
mov ecx, esi
call fcn.005b72d0
cmp byte [esi + 0xafa], bl
jne 0x5c704c
mov ecx, esi
call fcn.005c1100
mov ecx, esi
call fcn.005c0b00
xor eax, eax
jmp 0x5c7086
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.00620b8d
mov esp, ebp
pop ebp
ret