Function at 0x5cfff0
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 0x65357c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x692ac
call fcn.00609d40
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xaa1]
mov dword [ebp - 0x5c], esi
test al, al
mov dword [ebp - 4], edi
je 0x5d008c
mov byte [esi + 0xaa1], 0
mov eax, dword [esi + 0x314]
cmp eax, 4
je 0x5d0052
cmp dword [esi + 0x31c], 0x40
je 0x5d0052
cmp eax, 8
je 0x5d0052
cmp eax, 0x40
jne 0x5d0062
cmp dword [esi + 0x30c], edi
je 0x5d0079
cmp dword [esi + 0x310], edi
je 0x5d0079
push 5
mov ecx, esi
call fcn.005cf540
mov ecx, esi
call fcn.005cfc60
mov ecx, esi
call fcn.005cd3e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4a0]
cmp eax, edi
je 0x5d009f
push eax
lea ecx, [esi + 0x20]
call fcn.005e24b0
push esi
call fcn.004aef00
mov edx, dword [esi + 0x4a0]
add esp, 4
cmp edx, edi
jne 0x5d0579
mov al, byte [esi + 0xa92]
test al, al
je 0x5d0579
xor ecx, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x2c], di
mov eax, dword [esi + 0x4c]
mov edx, 0x6c910c
test edx, edx
mov byte [ebp - 4], 1
je 0x5d01ad
cmp eax, edi
je 0x5d01ad
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x38], di
call fcn.00401f20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x48], di
push edi
push 0x6c910c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.004027e0
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebx, [eax + edi + 2]
lea edi, [ebx + ebx]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x30], edx
je 0x5d0190
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x3c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x30]
push ebx
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x30]
xor edi, edi
cmp ecx, edi
jne 0x5d01b4
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d03ef
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x5d01ce
lea eax, [ebp - 0x2c]
add eax, 6
push 0x5c
push eax
call fcn.0060a17b
add esp, 8
mov ebx, eax
cmp ebx, edi
je 0x5d03ef
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x5d01f0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x20], di
call fcn.00401f20
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
cmp ecx, edi
jne 0x5d0211
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x5d021b
lea eax, [ebp - 0x2c]
mov edx, ebx
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x24]
cmp eax, edi
jne 0x5d022f
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.004a5e30
add esp, 8
cmp eax, edi
jne 0x5d03ce
mov eax, dword [ebp - 0x24]
cmp eax, edi
jne 0x5d024c
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.004a6010
add esp, 8
cmp eax, edi
jne 0x5d03ce
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x38], di
push edi
lea eax, [ebp - 0x18]
push edi
push eax
push 0x400
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, dword [0x6fdbfc]
mov ebx, dword [0x6fca90]
cmp esi, edi
je 0x5d0366
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5d0369
xor edi, edi
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x48], di
call fcn.00401f20
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00401070
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], edi
mov word [ebp - 0x54], di
push ebx
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004027e0
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x5d02ed
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x50]
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x3c], edx
je 0x5d034e
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x58]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x3c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
test eax, eax
mov ecx, eax
jne 0x5d037c
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5d0386
lea eax, [ebp - 0x38]
push 0x30
push ecx
push eax
push 0
call fcn.004574c0
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 2
push 0x5c
push ebx
call fcn.0060a17b
add esp, 8
lea ecx, [ebp - 0x24]
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x5d01de
cmp dword [esi + 0xa88], edi
je 0x5d0569
cmp dword [esi + 0xa8c], edi
je 0x5d0569
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x1c]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerGrabberStsProjects_
push 0x80000001
call edi
test eax, eax
jne 0x5d0569
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov edx, dword [0x6f7b78]
mov dword [ebp - 0x18], edx
mov eax, dword [esi + 0xa88]
lea ecx, [ebp - 0x18]
push eax
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
push ecx
mov byte [ebp - 4], 8
call fcn.0061fae1
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push ecx
push 0x80000001
call edi
test eax, eax
jne 0x5d055d
mov edx, dword [ebp - 0x1c]
push edx
call ebx
mov eax, dword [esi + 0xa8c]
mov ecx, dword [esi + 0xa88]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push edx
call fcn.0061fae1
add esp, 0x10
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push edx
push 0x80000001
call edi
test eax, eax
jne 0x5d055d
mov eax, dword [esi + 0x50]
push eax
call fcn.00609a4e
mov edx, dword [esi + 0x50]
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 1]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push 1
push 0
push 0x6d10ac
push eax
call edi
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.00609a4e
mov ecx, dword [ebp - 0x1c]
add esp, 4
lea edx, [eax + eax + 1]
mov eax, dword [esi + 0x4c]
push edx
push eax
push 1
push 0
push str.LocalPath
push ecx
call edi
lea ebx, [esi + 0x4d8]
push ebx
call fcn.00609a4e
add esp, 4
lea edx, [eax + eax + 1]
mov eax, dword [ebp - 0x1c]
push edx
push ebx
push 1
push 0
push str.LogFileName
push eax
call edi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00622d8a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401070
xor edi, edi
jmp 0x5d05ad
mov al, byte [esi + 0xa78]
test al, al
je 0x5d058b
mov ecx, dword [esi + 0xa8c]
jmp 0x5d058d
xor ecx, ecx
test al, al
je 0x5d0599
mov eax, dword [esi + 0xa88]
jmp 0x5d059b
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005dfb60
mov byte [esi + 0xa92], 1
mov edx, dword [esi + 0x4a0]
lea ecx, [esi + 0x20]
push edx
call fcn.005df050
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x5d05db
mov ecx, dword [esi + 0x4a0]
push ecx
push 0x13cd
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
mov ecx, esi
mov dword [esi + 0xa74], edi
mov dword [esi + 0xa84], edi
call fcn.005cf540
lea ecx, [esi + 0x4d4]
call fcn.00570330
mov al, byte [esi + 0xa96]
test al, al
jne 0x5d0626
cmp dword [esi + 4], edi
jne 0x5d061e
cmp dword [esi + 8], edi
jne 0x5d061e
mov ecx, esi
call fcn.005d36b0
cmp eax, edi
je 0x5d061e
mov al, 1
jmp 0x5d0620
xor al, al
mov byte [esi + 0xa95], al
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x5d0644
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x40], ecx
jne 0x5d076f
xor edi, edi
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5d0655
cmp eax, 1
jne 0x5d0771
mov eax, dword [esi + 0x24]
xor bl, bl
cmp eax, edi
je 0x5d0687
push str._simtelnet_
push eax
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x5d0687
mov edx, dword [esi + 0x20]
push str.simtel.net
push edx
call fcn.00609cc0
add esp, 8
test eax, eax
jne 0x5d0687
mov bl, 1
test dword [esi + 0x16c], 0x80000
jne 0x5d0771
test bl, bl
jne 0x5d0771
cmp dword [esi + 0xa7c], edi
jne 0x5d0771
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x34]
mov byte [ebp - 4], 9
cmp eax, 0x50
jne 0x5d06c5
cmp dword [esi + 0x44], 1
je 0x5d06d2
cmp eax, 0x1bb
jne 0x5d06e5
cmp dword [esi + 0x44], 2
jne 0x5d06e5
lea ecx, [ebp - 0x20]
push 0x6fc418
push ecx
call fcn.0060a593
add esp, 8
jmp 0x5d06f7
push eax
lea edx, [ebp - 0x20]
push str.:_ld
push edx
call fcn.0060a593
add esp, 0xc
mov eax, dword [esi + 0x24]
cmp eax, edi
mov edx, eax
jne 0x5d0705
mov edx, 0x6fc418
cmp eax, edi
je 0x5d0715
mov cl, byte [eax]
cmp cl, 0x2f
mov ecx, 0x6fc418
je 0x5d071a
mov ecx, 0x6cc27c
mov eax, dword [esi + 0x44]
cmp eax, 1
mov eax, 0x6c9538
je 0x5d072c
mov eax, 0x6c92f8
push edx
mov edx, dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
lea eax, [ebp - 0x18]
push str._s:___s_s_s_s
push eax
call fcn.0061fae1
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
push ecx
mov ecx, esi
call fcn.005d24d0
lea ecx, [ebp - 0x18]
mov byte [esi + 0x33a], 1
mov byte [esi + 0x33b], 1
mov byte [ebp - 4], 0
call fcn.00622d8a
jmp 0x5d0771
xor edi, edi
lea ebx, [esi + 0xab8]
mov byte [esi + 0x339], 0
mov dword [esi + 0xcc], edi
mov byte [ebp - 0x11], 0
mov eax, dword [ebx]
cmp eax, edi
jne 0x5d0791
lea eax, [ebx + 4]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5d0a6b
mov eax, dword [ebx]
cmp eax, edi
jne 0x5d07ab
lea eax, [ebx + 4]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5d0a6b
lea edx, [ebp - 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4a8], eax
mov dword [esi + 0x4ac], 0
cmp dword [esi + 0x4a8], 0xffffffff
jne 0x5d080e
mov eax, dword [esi + 0x4ac]
test eax, eax
jne 0x5d080e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5d080e
xor eax, eax
mov dword [esi + 0x4a8], eax
jmp 0x5d0833
mov eax, dword [ebp - 0x40]
push 1
push 0
push 0
push eax
call fcn.0060c730
mov ecx, dword [esi + 0x4a8]
add ecx, eax
mov dword [esi + 0x4a8], ecx
mov eax, dword [esi + 0x4ac]
adc eax, edx
push edi
mov dword [esi + 0x4ac], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005ed570
push fcn.0057f400
push 0x20
lea ecx, [ebp - 0x692bc]
push 0x3450
push ecx
call fcn.0060a72c
mov edx, dword [esi]
lea eax, [esi + 0x4d4]
push edx
push eax
lea eax, [esi + 0x20]
lea ecx, [esi + 0x904]
push eax
lea eax, [ebp - 0x692bc]
push eax
push ecx
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 0xa
call fcn.00594960
mov ecx, dword [esi + 0xa80]
lea eax, [esi + 0x14]
mov dword [ebp - 0x8a8], eax
mov eax, dword [esi + 0xa7c]
lea edx, [esi + 0x18]
push eax
mov eax, dword [esi + 0xa88]
mov dword [ebp - 0x8a4], edx
mov edx, dword [esi + 0xa8c]
push ecx
push edx
mov edx, dword [esi + 0x4a0]
push eax
mov al, byte [esi + 0xa78]
xor ecx, ecx
lea edi, [esi + 0x10]
test al, al
sete cl
push ecx
push edx
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x678], esi
mov dword [ebp - 0x8ac], edi
mov dword [ebp - 0x7bc], edi
call fcn.005c4da0
mov eax, dword [esi + 0x4ac]
mov ecx, dword [esi + 0x4a8]
push 1
push eax
push ecx
lea ecx, [ebp - 0x8bc]
call fcn.005c5470
mov al, byte [esi + 0xa78]
test al, al
je 0x5d0928
xor eax, eax
mov byte [ebp - 0x11], 1
mov dword [esi + 0xa74], eax
mov dword [ebp - 0x1c], eax
jmp 0x5d0a39
mov eax, dword [ebx]
test eax, eax
jne 0x5d0931
lea eax, [ebx + 4]
mov edx, dword [esi + 0x50]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x5d09d9
mov edx, dword [esi + 0x4a8]
mov ecx, dword [esi + 0x4ac]
mov eax, edx
mov dword [ebp - 0x6f8], ecx
mov dword [ebp - 0x6fc], eax
or eax, ecx
jne 0x5d0978
mov dword [ebp - 0x734], 0
mov dword [ebp - 0x730], 0
mov dword [esi + 0x4b0], edx
mov dword [esi + 0x4b4], ecx
push 0
lea ecx, [ebp - 0x8bc]
mov dword [esi + 0xa74], 0
call fcn.005c50f0
mov dword [esi + 0x8fc], 3
mov eax, dword [esi + 0x5c]
test eax, eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x11], 1
je 0x5d09d9
mov eax, dword [edi]
test eax, eax
je 0x5d09d0
push 0
push 0x1472
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005ce020
mov ecx, ebx
call fcn.00401070
mov eax, 0x6fc418
test eax, eax
je 0x5d0a39
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5d0a39
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x6fc418
push eax
push eax
call edi
test eax, eax
mov dword [ebx + 8], eax
je 0x5d0a39
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x5d0a39
mov edx, dword [ebx + 8]
push edx
push eax
push 0xffffffffffffffff
push 0x6fc418
push 0
push 0
call edi
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x8bc]
mov byte [ebp - 4], 0xa
call fcn.00594a30
push fcn.005ed570
push 0x20
lea eax, [ebp - 0x692bc]
push 0x3450
push eax
mov byte [ebp - 4], 0
call fcn.00609529
mov al, byte [ebp - 0x11]
test al, al
jne case.default.0x5d0a73
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5d0a73
jmp dword [eax*4 + 0x5d0af8]
mov ecx, esi
call fcn.005c8860
jmp 0x5d0a9c
mov ecx, esi
call fcn.005c7340
jmp 0x5d0a9c
mov ecx, esi
call fcn.005c7a00
jmp 0x5d0a9c
mov ecx, esi
call fcn.005c7fe0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [esi + 0x33f], 0
mov byte [esi + 0x18a], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret