Function at 0x5bba40
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 0x65b1b2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x696b8
call fcn.00616f00
mov eax, dword [0x74d890]
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 - 0x696c8], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0xae9], bl
jne 0x5bc34f
cmp byte [esi + 0xaea], bl
jne 0x5bc34f
mov eax, dword [esi + 0x4e8]
cmp eax, ebx
je 0x5bbaae
push eax
lea ecx, [esi + 0x20]
call fcn.005c5e20
push esi
call fcn.004b07f0
add esp, 4
mov edx, dword [esi + 0x4e8]
cmp edx, ebx
jne 0x5bbe45
cmp byte [esi + 0xada], bl
je 0x5bbe45
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 0x66dea8
lea ecx, [ebp - 0x2c]
call fcn.004021b0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5bbafd
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5bbc6c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5bbb17
lea eax, [ebp - 0x28]
push 0x5c
add eax, 6
push eax
call fcn.00617340
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x5bbc6c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5bbb39
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 0x5bbb52
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5bbb5c
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 0x5bbb72
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004a3d80
add esp, 8
test eax, eax
jne 0x5bbc4b
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5bbb8f
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004a3f60
add esp, 8
test eax, eax
jne 0x5bbc4b
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 - 0x696b8]
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 [0x752d00]
push eax
mov ecx, dword [ebp - 0x696b8]
push ecx
mov edx, dword [0x753ce4]
push edx
lea ecx, [ebp - 0x38]
call fcn.004021b0
mov eax, dword [ebp - 0x696b8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
jne 0x5bbc06
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5bbc10
lea eax, [ebp - 0x34]
push 0x30
push ecx
push eax
push ebx
call fcn.0046f700
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 0x5bc3e6
push 0x5c
add edi, 2
push edi
call fcn.00617340
add esp, 8
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
jmp 0x5bbb27
cmp dword [esi + 0xad0], ebx
je 0x5bbe37
cmp dword [esi + 0xad4], ebx
je 0x5bbe37
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x696bc]
push edx
push ebx
push 0xf003f
push ebx
push 0x66e97c
push ebx
push str.SoftwareDownloadManagerGrabberStsProjects_
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
cmp eax, ebx
jne 0x5bbe37
mov eax, dword [ebp - 0x696bc]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea ecx, [ebp - 0x696b8]
call fcn.00402500
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xad0]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
lea edx, [ebp - 0x696b8]
push edx
call fcn.00402f70
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x696bc]
push ecx
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
mov edx, dword [ebp - 0x696b8]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x5bbe26
mov eax, dword [ebp - 0x696bc]
push eax
call ebx
mov ecx, dword [esi + 0xad4]
push ecx
mov edx, dword [esi + 0xad0]
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
lea eax, [ebp - 0x696b8]
push eax
call fcn.00402f70
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x696bc]
push edx
push 0
push 0xf003f
push 0
push 0x66e97c
push 0
mov eax, dword [ebp - 0x696b8]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x5bbe26
mov edx, dword [esi + 0x50]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5bbd84
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
push edx
push 1
push 0
push 0x67c79c
mov edx, dword [ebp - 0x696bc]
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 0x5bbdc0
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 - 0x696bc]
push ecx
call edi
lea ecx, [esi + 0x520]
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x5bbdf2
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 - 0x696bc]
push eax
call edi
mov ecx, dword [ebp - 0x696bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x696b8]
call fcn.00402570
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x5bbe79
mov al, byte [esi + 0xac0]
test al, al
je 0x5bbe57
mov ecx, dword [esi + 0xad4]
jmp 0x5bbe59
xor ecx, ecx
test al, al
je 0x5bbe65
mov eax, dword [esi + 0xad0]
jmp 0x5bbe67
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005c90b0
mov byte [esi + 0xada], 1
lea ecx, [esi + 0x20]
mov edx, dword [esi + 0x4e8]
push edx
call fcn.005c4860
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x5bbea7
mov ecx, dword [esi + 0x4e8]
push ecx
push 0x13cd
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0xabc], ebx
mov dword [esi + 0xacc], ebx
push 1
mov ecx, esi
call fcn.005ac6d0
lea ecx, [esi + 0x51c]
call fcn.00561b80
cmp byte [esi + 0xade], 0
jne 0x5bbef1
cmp dword [esi + 4], ebx
jne 0x5bbee9
cmp dword [esi + 8], ebx
jne 0x5bbee9
mov ecx, esi
call fcn.005ad2f0
test eax, eax
je 0x5bbee9
mov al, 1
jmp 0x5bbeeb
xor al, al
mov byte [esi + 0xadd], al
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x5bbf12
lea edx, [eax + 1]
jmp 0x5bbf00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bbf00
sub eax, edx
mov dword [ebp - 0x18], eax
jne 0x5bc04e
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5bbf23
cmp eax, 1
jne 0x5bc04e
xor bl, bl
mov byte [ebp - 0x696bd], bl
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5bbf61
push str._simtelnet_
push eax
call fcn.00616e70
add esp, 8
test eax, eax
je 0x5bbf61
mov eax, dword [esi + 0x20]
push str.simtel.net
push eax
call fcn.00616e70
add esp, 8
test eax, eax
jne 0x5bbf61
mov bl, 1
mov byte [ebp - 0x696bd], bl
test dword [esi + 0x174], 0x80000
jne 0x5bc04e
test bl, bl
jne 0x5bc04e
cmp dword [esi + 0xac4], 0
jne 0x5bc04e
lea ecx, [ebp - 0x696b8]
call fcn.00402500
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x34]
cmp eax, 0x50
jne 0x5bbfa3
cmp dword [esi + 0x44], 1
je 0x5bbfb0
cmp eax, 0x1bb
jne 0x5bbfc3
cmp dword [esi + 0x44], 2
jne 0x5bbfc3
push 0x66e97c
lea edx, [ebp - 0x1c]
push edx
call fcn.006186ab
add esp, 8
jmp 0x5bbfd5
push eax
push str.:_ld
lea eax, [ebp - 0x1c]
push eax
call fcn.006186ab
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
mov edx, eax
jne 0x5bbfe5
mov edx, 0x66e97c
jmp 0x5bbfef
cmp byte [eax], 0x2f
mov ecx, 0x66e97c
je 0x5bbff4
mov ecx, 0x672df8
cmp dword [esi + 0x44], 1
mov eax, 0x66f490
je 0x5bc004
mov eax, 0x66ebe4
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 - 0x696b8]
push eax
call fcn.00402f70
add esp, 0x1c
mov ecx, dword [ebp - 0x696b8]
push ecx
mov ecx, esi
call fcn.005ad030
mov byte [esi + 0x35e], 1
mov byte [esi + 0x35f], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x696b8]
call fcn.00402570
mov byte [esi + 0x35d], 0
xor ebx, ebx
mov dword [esi + 0xcc], ebx
mov byte [ebp - 0x696b1], bl
cmp dword [esi + 0xb04], ebx
je 0x5bc073
mov eax, dword [esi + 0xb04]
jmp 0x5bc079
lea eax, [esi + 0xb08]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5bc080
sub eax, edx
sar eax, 1
je 0x5bc2ff
cmp dword [esi + 0xb04], ebx
je 0x5bc0a5
mov eax, dword [esi + 0xb04]
jmp 0x5bc0ab
lea eax, [esi + 0xb08]
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 0x5bc2ff
lea edx, [ebp - 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4f0], eax
mov dword [esi + 0x4f4], ebx
cmp eax, 0xffffffff
jne 0x5bc101
cmp ebx, ebx
jne 0x5bc101
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5bc101
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x4f4], ebx
jmp 0x5bc11a
push 1
push ebx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0061a480
add dword [esi + 0x4f0], eax
adc dword [esi + 0x4f4], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005d0a80
push fcn.005759b0
push 0x20
push 0x3470
lea ecx, [ebp - 0x696b0]
push ecx
call fcn.00617ec9
mov byte [ebp - 4], 6
mov edx, dword [esi]
push edx
lea eax, [esi + 0x51c]
push eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x696b0]
push eax
lea ecx, [esi + 0x94c]
push ecx
lea ecx, [ebp - 0x8b0]
call fcn.00587530
mov byte [ebp - 4], 7
mov dword [ebp - 0x658], esi
lea edi, [esi + 0x10]
mov dword [ebp - 0x8a0], edi
mov dword [ebp - 0x7b0], edi
lea eax, [esi + 0x14]
mov dword [ebp - 0x89c], eax
lea edx, [esi + 0x18]
mov dword [ebp - 0x898], edx
mov eax, dword [esi + 0xac4]
push eax
mov ecx, dword [esi + 0xac8]
push ecx
mov edx, dword [esi + 0xad4]
push edx
mov eax, dword [esi + 0xad0]
push eax
xor ecx, ecx
cmp byte [esi + 0xac0], cl
sete cl
push ecx
mov edx, dword [esi + 0x4e8]
push edx
lea ecx, [ebp - 0x8b0]
call fcn.005aa950
push 1
mov eax, dword [esi + 0x4f4]
push eax
mov ecx, dword [esi + 0x4f0]
push ecx
lea ecx, [ebp - 0x8b0]
call fcn.005aac40
cmp byte [esi + 0xac0], 0
je 0x5bc20a
mov dword [esi + 0xabc], ebx
mov dword [ebp - 0x696c4], ebx
mov byte [ebp - 0x696b1], 1
jmp 0x5bc2cb
cmp dword [esi + 0xb04], ebx
je 0x5bc21a
mov eax, dword [esi + 0xb04]
jmp 0x5bc220
lea eax, [esi + 0xb08]
push ebx
mov edx, dword [esi + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x5bc2b9
mov ebx, dword [esi + 0x4f0]
mov eax, dword [esi + 0x4f4]
push eax
push ebx
lea ecx, [ebp - 0x8b0]
call fcn.0056e010
mov dword [esi + 0xabc], 0
mov dword [esi + 0x4f8], ebx
mov eax, dword [esi + 0x4f4]
mov dword [esi + 0x4fc], eax
push 0
lea ecx, [ebp - 0x8b0]
call fcn.005a98d0
mov dword [ebp - 0x696c4], 0
mov byte [ebp - 0x696b1], 1
mov dword [esi + 0x944], 3
cmp dword [esi + 0x5c], 0
je 0x5bc2b9
mov edi, dword [edi]
test edi, edi
je 0x5bc2b0
push 0
push 0x1472
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005b1a10
push 0
push 0x66e97c
lea ecx, [esi + 0xb04]
call fcn.00401980
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8b0]
call fcn.00586120
mov byte [ebp - 4], 0
push fcn.005d0a80
push 0x20
push 0x3470
lea eax, [ebp - 0x696b0]
push eax
call fcn.00615d78
cmp byte [ebp - 0x696b1], 0
jne case.default.0x5bc307
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5bc307
jmp dword [eax*4 + 0x5bc404]
mov ecx, esi
call fcn.005bb230
jmp 0x5bc330
mov ecx, esi
call fcn.005ba6f0
jmp 0x5bc330
mov ecx, esi
call fcn.005bad10
jmp 0x5bc330
mov ecx, esi
call fcn.005baf40
mov dword [ebp - 0x696c4], eax
mov byte [esi + 0x363], 0
mov byte [esi + 0x19a], 0
mov eax, dword [ebp - 0x696c4]
jmp 0x5bc3e6
mov byte [esi + 0xae9], bl
cmp byte [esi + 0xaea], bl
jne 0x5bc394
mov ecx, dword [esi + 0x338]
cmp ecx, 4
je 0x5bc384
mov eax, dword [esi + 0x340]
cmp eax, 0x40
je 0x5bc384
cmp eax, 0x800
je 0x5bc384
cmp ecx, 8
je 0x5bc384
cmp ecx, 0x40
jne 0x5bc394
cmp dword [esi + 0x330], ebx
je 0x5bc3b3
cmp dword [esi + 0x334], ebx
je 0x5bc3b3
push 5
mov ecx, esi
call fcn.005ac6d0
cmp byte [esi + 0xaea], bl
jne 0x5bc3ac
mov ecx, esi
call fcn.005b6480
mov ecx, esi
call fcn.005b5e80
xor eax, eax
jmp 0x5bc3e6
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.006157d3
mov esp, ebp
pop ebp
ret