Function at 0x5c3480
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 0x663202
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x698b8
call fcn.0061ea30
mov eax, dword [0x755898]
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 - 0x698c8], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0xae9], bl
jne 0x5c3d8f
cmp byte [esi + 0xaea], bl
jne 0x5c3d8f
mov eax, dword [esi + 0x4e8]
cmp eax, ebx
je 0x5c34ee
push eax
lea ecx, [esi + 0x20]
call fcn.005cd850
push esi
call fcn.004b6c50
add esp, 4
mov edx, dword [esi + 0x4e8]
cmp edx, ebx
jne 0x5c3885
cmp byte [esi + 0xada], bl
je 0x5c3885
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 0x675ea0
lea ecx, [ebp - 0x2c]
call fcn.004021b0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c353d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5c36ac
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c3557
lea eax, [ebp - 0x28]
push 0x5c
add eax, 6
push eax
call fcn.0061ee70
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x5c36ac
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c3579
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 0x5c3592
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5c359c
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 0x5c35b2
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004aa320
add esp, 8
test eax, eax
jne 0x5c368b
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5c35cf
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004aa500
add esp, 8
test eax, eax
jne 0x5c368b
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 - 0x698b8]
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 [0x75ad10]
push eax
mov ecx, dword [ebp - 0x698b8]
push ecx
mov edx, dword [0x75bcfc]
push edx
lea ecx, [ebp - 0x38]
call fcn.004021b0
mov eax, dword [ebp - 0x698b8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
jne 0x5c3646
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5c3650
lea eax, [ebp - 0x34]
push 0x30
push ecx
push eax
push ebx
call fcn.004729e0
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 0x5c3e26
push 0x5c
add edi, 2
push edi
call fcn.0061ee70
add esp, 8
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
jmp 0x5c3567
cmp dword [esi + 0xad0], ebx
je 0x5c3877
cmp dword [esi + 0xad4], ebx
je 0x5c3877
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x698bc]
push edx
push ebx
push 0xf003f
push ebx
push 0x676974
push ebx
push str.SoftwareDownloadManagerGrabberStsProjects_
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
cmp eax, ebx
jne 0x5c3877
mov eax, dword [ebp - 0x698bc]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea ecx, [ebp - 0x698b8]
call fcn.00402500
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xad0]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
lea edx, [ebp - 0x698b8]
push edx
call fcn.00402f70
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x698bc]
push ecx
push 0
push 0xf003f
push 0
push 0x676974
push 0
mov edx, dword [ebp - 0x698b8]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x5c3866
mov eax, dword [ebp - 0x698bc]
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 - 0x698b8]
push eax
call fcn.00402f70
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x698bc]
push edx
push 0
push 0xf003f
push 0
push 0x676974
push 0
mov eax, dword [ebp - 0x698b8]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x5c3866
mov edx, dword [esi + 0x50]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5c37c4
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
push edx
push 1
push 0
push 0x68489c
mov edx, dword [ebp - 0x698bc]
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 0x5c3800
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 - 0x698bc]
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 0x5c3832
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 - 0x698bc]
push eax
call edi
mov ecx, dword [ebp - 0x698bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x698b8]
call fcn.00402570
xor ebx, ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x5c38b9
mov al, byte [esi + 0xac0]
test al, al
je 0x5c3897
mov ecx, dword [esi + 0xad4]
jmp 0x5c3899
xor ecx, ecx
test al, al
je 0x5c38a5
mov eax, dword [esi + 0xad0]
jmp 0x5c38a7
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005d0ae0
mov byte [esi + 0xada], 1
lea ecx, [esi + 0x20]
mov edx, dword [esi + 0x4e8]
push edx
call fcn.005cc290
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x5c38e7
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.005b4090
lea ecx, [esi + 0x51c]
call fcn.005690a0
cmp byte [esi + 0xade], 0
jne 0x5c3931
cmp dword [esi + 4], ebx
jne 0x5c3929
cmp dword [esi + 8], ebx
jne 0x5c3929
mov ecx, esi
call fcn.005b4cb0
test eax, eax
je 0x5c3929
mov al, 1
jmp 0x5c392b
xor al, al
mov byte [esi + 0xadd], al
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x5c3952
lea edx, [eax + 1]
jmp 0x5c3940
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5c3940
sub eax, edx
mov dword [ebp - 0x18], eax
jne 0x5c3a8e
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5c3963
cmp eax, 1
jne 0x5c3a8e
xor bl, bl
mov byte [ebp - 0x698bd], bl
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5c39a1
push str._simtelnet_
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x5c39a1
mov eax, dword [esi + 0x20]
push str.simtel.net
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
jne 0x5c39a1
mov bl, 1
mov byte [ebp - 0x698bd], bl
test dword [esi + 0x174], 0x80000
jne 0x5c3a8e
test bl, bl
jne 0x5c3a8e
cmp dword [esi + 0xac4], 0
jne 0x5c3a8e
lea ecx, [ebp - 0x698b8]
call fcn.00402500
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x34]
cmp eax, 0x50
jne 0x5c39e3
cmp dword [esi + 0x44], 1
je 0x5c39f0
cmp eax, 0x1bb
jne 0x5c3a03
cmp dword [esi + 0x44], 2
jne 0x5c3a03
push 0x676974
lea edx, [ebp - 0x1c]
push edx
call fcn.006201db
add esp, 8
jmp 0x5c3a15
push eax
push str.:_ld
lea eax, [ebp - 0x1c]
push eax
call fcn.006201db
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
mov edx, eax
jne 0x5c3a25
mov edx, 0x676974
jmp 0x5c3a2f
cmp byte [eax], 0x2f
mov ecx, 0x676974
je 0x5c3a34
mov ecx, 0x67ae60
cmp dword [esi + 0x44], 1
mov eax, 0x677488
je 0x5c3a44
mov eax, 0x676bdc
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 - 0x698b8]
push eax
call fcn.00402f70
add esp, 0x1c
mov ecx, dword [ebp - 0x698b8]
push ecx
mov ecx, esi
call fcn.005b49f0
mov byte [esi + 0x35e], 1
mov byte [esi + 0x35f], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x698b8]
call fcn.00402570
mov byte [esi + 0x35d], 0
xor ebx, ebx
mov dword [esi + 0xcc], ebx
mov byte [ebp - 0x698b1], bl
cmp dword [esi + 0xb04], ebx
je 0x5c3ab3
mov eax, dword [esi + 0xb04]
jmp 0x5c3ab9
lea eax, [esi + 0xb08]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5c3ac0
sub eax, edx
sar eax, 1
je 0x5c3d3f
cmp dword [esi + 0xb04], ebx
je 0x5c3ae5
mov eax, dword [esi + 0xb04]
jmp 0x5c3aeb
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 0x5c3d3f
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 0x5c3b41
cmp ebx, ebx
jne 0x5c3b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5c3b41
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x4f4], ebx
jmp 0x5c3b5a
push 1
push ebx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00621c40
add dword [esi + 0x4f0], eax
adc dword [esi + 0x4f4], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005d84f0
push fcn.0057cf50
push 0x20
push 0x3480
lea ecx, [ebp - 0x698b0]
push ecx
call fcn.0061f9f9
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 - 0x698b0]
push eax
lea ecx, [esi + 0x94c]
push ecx
lea ecx, [ebp - 0x8b0]
call fcn.0058ee20
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.005b2300
push 1
mov eax, dword [esi + 0x4f4]
push eax
mov ecx, dword [esi + 0x4f0]
push ecx
lea ecx, [ebp - 0x8b0]
call fcn.005b25f0
cmp byte [esi + 0xac0], 0
je 0x5c3c4a
mov dword [esi + 0xabc], ebx
mov dword [ebp - 0x698c4], ebx
mov byte [ebp - 0x698b1], 1
jmp 0x5c3d0b
cmp dword [esi + 0xb04], ebx
je 0x5c3c5a
mov eax, dword [esi + 0xb04]
jmp 0x5c3c60
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 0x5c3cf9
mov ebx, dword [esi + 0x4f0]
mov eax, dword [esi + 0x4f4]
push eax
push ebx
lea ecx, [ebp - 0x8b0]
call fcn.005754e0
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.005b1270
mov dword [ebp - 0x698c4], 0
mov byte [ebp - 0x698b1], 1
mov dword [esi + 0x944], 3
cmp dword [esi + 0x5c], 0
je 0x5c3cf9
mov edi, dword [edi]
test edi, edi
je 0x5c3cf0
push 0
push 0x1472
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005b9400
push 0
push 0x676974
lea ecx, [esi + 0xb04]
call fcn.00401980
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8b0]
call fcn.0058d9f0
mov byte [ebp - 4], 0
push fcn.005d84f0
push 0x20
push 0x3480
lea eax, [ebp - 0x698b0]
push eax
call fcn.0061d8a4
cmp byte [ebp - 0x698b1], 0
jne case.default.0x5c3d47
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5c3d47
jmp dword [eax*4 + 0x5c3e44]
mov ecx, esi
call fcn.005c2c70
jmp 0x5c3d70
mov ecx, esi
call fcn.005c2130
jmp 0x5c3d70
mov ecx, esi
call fcn.005c2750
jmp 0x5c3d70
mov ecx, esi
call fcn.005c2980
mov dword [ebp - 0x698c4], eax
mov byte [esi + 0x363], 0
mov byte [esi + 0x19a], 0
mov eax, dword [ebp - 0x698c4]
jmp 0x5c3e26
mov byte [esi + 0xae9], bl
cmp byte [esi + 0xaea], bl
jne 0x5c3dd4
mov ecx, dword [esi + 0x338]
cmp ecx, 4
je 0x5c3dc4
mov eax, dword [esi + 0x340]
cmp eax, 0x40
je 0x5c3dc4
cmp eax, 0x800
je 0x5c3dc4
cmp ecx, 8
je 0x5c3dc4
cmp ecx, 0x40
jne 0x5c3dd4
cmp dword [esi + 0x330], ebx
je 0x5c3df3
cmp dword [esi + 0x334], ebx
je 0x5c3df3
push 5
mov ecx, esi
call fcn.005b4090
cmp byte [esi + 0xaea], bl
jne 0x5c3dec
mov ecx, esi
call fcn.005bdec0
mov ecx, esi
call fcn.005bd8c0
xor eax, eax
jmp 0x5c3e26
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.0061d2ff
mov esp, ebp
pop ebp
ret