Function at 0x5be2f0
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 0x65de72
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x696b8
call fcn.006197b0
mov eax, dword [0x74f8a0]
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 0x5bebff
cmp byte [esi + 0xaea], bl
jne 0x5bebff
mov eax, dword [esi + 0x4e8]
cmp eax, ebx
je 0x5be35e
push eax
lea ecx, [esi + 0x20]
call fcn.005c86a0
push esi
call fcn.004b2220
add esp, 4
mov edx, dword [esi + 0x4e8]
cmp edx, ebx
jne 0x5be6f5
cmp byte [esi + 0xada], bl
je 0x5be6f5
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 0x66fea8
lea ecx, [ebp - 0x2c]
call fcn.004021b0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5be3ad
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5be51c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5be3c7
lea eax, [ebp - 0x28]
push 0x5c
add eax, 6
push eax
call fcn.00619bf0
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x5be51c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5be3e9
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 0x5be402
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5be40c
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 0x5be422
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004a5a80
add esp, 8
test eax, eax
jne 0x5be4fb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5be43f
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004a5c60
add esp, 8
test eax, eax
jne 0x5be4fb
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 [0x754d20]
push eax
mov ecx, dword [ebp - 0x696b8]
push ecx
mov edx, dword [0x755d04]
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 0x5be4b6
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5be4c0
lea eax, [ebp - 0x34]
push 0x30
push ecx
push eax
push ebx
call fcn.0046f920
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 0x5bec96
push 0x5c
add edi, 2
push edi
call fcn.00619bf0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
jmp 0x5be3d7
cmp dword [esi + 0xad0], ebx
je 0x5be6e7
cmp dword [esi + 0xad4], ebx
je 0x5be6e7
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x696bc]
push edx
push ebx
push 0xf003f
push ebx
push 0x670984
push ebx
push str.SoftwareDownloadManagerGrabberStsProjects_
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
cmp eax, ebx
jne 0x5be6e7
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 0x670984
push 0
mov edx, dword [ebp - 0x696b8]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x5be6d6
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 0x670984
push 0
mov eax, dword [ebp - 0x696b8]
push eax
push 0x80000001
call edi
test eax, eax
jne 0x5be6d6
mov edx, dword [esi + 0x50]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5be634
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
push edx
push 1
push 0
push 0x67e7ec
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 0x5be670
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 0x5be6a2
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 0x5be729
mov al, byte [esi + 0xac0]
test al, al
je 0x5be707
mov ecx, dword [esi + 0xad4]
jmp 0x5be709
xor ecx, ecx
test al, al
je 0x5be715
mov eax, dword [esi + 0xad0]
jmp 0x5be717
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005cb930
mov byte [esi + 0xada], 1
lea ecx, [esi + 0x20]
mov edx, dword [esi + 0x4e8]
push edx
call fcn.005c70d0
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x5be757
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.005aef40
lea ecx, [esi + 0x51c]
call fcn.00564480
cmp byte [esi + 0xade], 0
jne 0x5be7a1
cmp dword [esi + 4], ebx
jne 0x5be799
cmp dword [esi + 8], ebx
jne 0x5be799
mov ecx, esi
call fcn.005afb60
test eax, eax
je 0x5be799
mov al, 1
jmp 0x5be79b
xor al, al
mov byte [esi + 0xadd], al
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x5be7c2
lea edx, [eax + 1]
jmp 0x5be7b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5be7b0
sub eax, edx
mov dword [ebp - 0x18], eax
jne 0x5be8fe
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5be7d3
cmp eax, 1
jne 0x5be8fe
xor bl, bl
mov byte [ebp - 0x696bd], bl
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5be811
push str._simtelnet_
push eax
call fcn.00619720
add esp, 8
test eax, eax
je 0x5be811
mov eax, dword [esi + 0x20]
push str.simtel.net
push eax
call fcn.00619720
add esp, 8
test eax, eax
jne 0x5be811
mov bl, 1
mov byte [ebp - 0x696bd], bl
test dword [esi + 0x174], 0x80000
jne 0x5be8fe
test bl, bl
jne 0x5be8fe
cmp dword [esi + 0xac4], 0
jne 0x5be8fe
lea ecx, [ebp - 0x696b8]
call fcn.00402500
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x34]
cmp eax, 0x50
jne 0x5be853
cmp dword [esi + 0x44], 1
je 0x5be860
cmp eax, 0x1bb
jne 0x5be873
cmp dword [esi + 0x44], 2
jne 0x5be873
push 0x670984
lea edx, [ebp - 0x1c]
push edx
call fcn.0061af5b
add esp, 8
jmp 0x5be885
push eax
push str.:_ld
lea eax, [ebp - 0x1c]
push eax
call fcn.0061af5b
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
mov edx, eax
jne 0x5be895
mov edx, 0x670984
jmp 0x5be89f
cmp byte [eax], 0x2f
mov ecx, 0x670984
je 0x5be8a4
mov ecx, 0x674e00
cmp dword [esi + 0x44], 1
mov eax, 0x671498
je 0x5be8b4
mov eax, 0x670bec
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.005af8a0
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 0x5be923
mov eax, dword [esi + 0xb04]
jmp 0x5be929
lea eax, [esi + 0xb08]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5be930
sub eax, edx
sar eax, 1
je 0x5bebaf
cmp dword [esi + 0xb04], ebx
je 0x5be955
mov eax, dword [esi + 0xb04]
jmp 0x5be95b
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 0x5bebaf
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 0x5be9b1
cmp ebx, ebx
jne 0x5be9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x5be9b1
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x4f4], ebx
jmp 0x5be9ca
push 1
push ebx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0061cd30
add dword [esi + 0x4f0], eax
adc dword [esi + 0x4f4], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.005d3300
push fcn.005780e0
push 0x20
push 0x3470
lea ecx, [ebp - 0x696b0]
push ecx
call fcn.0061a779
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.00589c60
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.005ad1c0
push 1
mov eax, dword [esi + 0x4f4]
push eax
mov ecx, dword [esi + 0x4f0]
push ecx
lea ecx, [ebp - 0x8b0]
call fcn.005ad4b0
cmp byte [esi + 0xac0], 0
je 0x5beaba
mov dword [esi + 0xabc], ebx
mov dword [ebp - 0x696c4], ebx
mov byte [ebp - 0x696b1], 1
jmp 0x5beb7b
cmp dword [esi + 0xb04], ebx
je 0x5beaca
mov eax, dword [esi + 0xb04]
jmp 0x5bead0
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 0x5beb69
mov ebx, dword [esi + 0x4f0]
mov eax, dword [esi + 0x4f4]
push eax
push ebx
lea ecx, [ebp - 0x8b0]
call fcn.005708d0
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.005ac140
mov dword [ebp - 0x696c4], 0
mov byte [ebp - 0x696b1], 1
mov dword [esi + 0x944], 3
cmp dword [esi + 0x5c], 0
je 0x5beb69
mov edi, dword [edi]
test edi, edi
je 0x5beb60
push 0
push 0x1472
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005b42a0
push 0
push 0x670984
lea ecx, [esi + 0xb04]
call fcn.00401980
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8b0]
call fcn.00588850
mov byte [ebp - 4], 0
push fcn.005d3300
push 0x20
push 0x3470
lea eax, [ebp - 0x696b0]
push eax
call fcn.00618623
cmp byte [ebp - 0x696b1], 0
jne case.default.0x5bebb7
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5bebb7
jmp dword [eax*4 + 0x5becb4]
mov ecx, esi
call fcn.005bdae0
jmp 0x5bebe0
mov ecx, esi
call fcn.005bcfa0
jmp 0x5bebe0
mov ecx, esi
call fcn.005bd5c0
jmp 0x5bebe0
mov ecx, esi
call fcn.005bd7f0
mov dword [ebp - 0x696c4], eax
mov byte [esi + 0x363], 0
mov byte [esi + 0x19a], 0
mov eax, dword [ebp - 0x696c4]
jmp 0x5bec96
mov byte [esi + 0xae9], bl
cmp byte [esi + 0xaea], bl
jne 0x5bec44
mov ecx, dword [esi + 0x338]
cmp ecx, 4
je 0x5bec34
mov eax, dword [esi + 0x340]
cmp eax, 0x40
je 0x5bec34
cmp eax, 0x800
je 0x5bec34
cmp ecx, 8
je 0x5bec34
cmp ecx, 0x40
jne 0x5bec44
cmp dword [esi + 0x330], ebx
je 0x5bec63
cmp dword [esi + 0x334], ebx
je 0x5bec63
push 5
mov ecx, esi
call fcn.005aef40
cmp byte [esi + 0xaea], bl
jne 0x5bec5c
mov ecx, esi
call fcn.005b8d30
mov ecx, esi
call fcn.005b8730
xor eax, eax
jmp 0x5bec96
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.0061807e
mov esp, ebp
pop ebp
ret