Function at 0x5b2430
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 0x62ea0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x6919c
call fcn.005e7330
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov al, byte [esi + 0xa79]
mov dword [ebp - 0x4c], esi
test al, al
mov dword [ebp - 4], edi
je 0x5b24c7
mov byte [esi + 0xa79], 0
mov eax, dword [esi + 0x314]
cmp eax, 4
je 0x5b248d
cmp dword [esi + 0x31c], 0x40
je 0x5b248d
cmp eax, 0x40
jne 0x5b249d
cmp dword [esi + 0x30c], edi
je 0x5b24b4
cmp dword [esi + 0x310], edi
je 0x5b24b4
push 5
mov ecx, esi
call fcn.005b19e0
mov ecx, esi
call fcn.005b2100
mov ecx, esi
call fcn.005aff30
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
push esi
call fcn.0049e990
mov edx, dword [esi + 0x480]
add esp, 4
cmp edx, edi
jne 0x5b2935
mov al, byte [esi + 0xa6a]
test al, al
je 0x5b2935
xor ecx, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x34], di
mov eax, dword [esi + 0x4c]
mov edx, 0x6a10a0
test edx, edx
mov byte [ebp - 4], 1
je 0x5b25ca
cmp eax, edi
je 0x5b25ca
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
call fcn.00402410
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401070
push 0x6a10a0
lea ecx, [ebp - 0x48]
call fcn.00402380
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp eax, edi
jne 0x5b254e
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x40]
push eax
call fcn.005e71bf
lea ebx, [eax + edi + 2]
lea edi, [ebx + ebx]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x38], edx
je 0x5b25af
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 - 0x2c]
call fcn.00402400
push eax
lea ecx, [ebp - 0x48]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x38]
push ebx
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005e71bf
add esp, 0x14
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x38]
xor ebx, ebx
cmp ecx, ebx
jne 0x5b25d3
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b27ad
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5b25ed
lea eax, [ebp - 0x34]
add eax, 6
push 0x5c
push eax
call fcn.005e77bb
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x5b27ad
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5b260f
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00402410
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp ecx, ebx
jne 0x5b2630
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x5b263a
lea eax, [ebp - 0x34]
mov edx, edi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5b264e
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00496570
add esp, 8
cmp eax, ebx
jne 0x5b278c
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5b266b
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00496750
add esp, 8
cmp eax, ebx
jne 0x5b278c
mov eax, dword [0x6cd768]
mov dword [ebp - 0x18], eax
push ebx
lea ecx, [ebp - 0x1c]
push ebx
push ecx
push 0x400
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x6d3394]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x44], bx
call fcn.00401070
cmp esi, ebx
je 0x5b272a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b272a
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x40], eax
je 0x5b272a
lea eax, [eax + eax + 2]
push eax
call fcn.005ffe3f
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x5b272d
mov ecx, dword [ebp - 0x40]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x5b2737
lea ecx, [ebp - 0x34]
test eax, eax
jne 0x5b273e
lea eax, [ebp - 0x44]
push 0x30
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x48]
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00603a3c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x38]
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 edi, 2
push 0x5c
push edi
call fcn.005e77bb
add esp, 8
lea ecx, [ebp - 0x2c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x5b25fd
cmp dword [esi + 0xa60], ebx
je 0x5b2927
cmp dword [esi + 0xa64], ebx
je 0x5b2927
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x6d1c98
push 0
push str.SoftwareDownloadManagerGrabberStsProjects_
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x5b2927
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov edx, dword [0x6cd768]
mov dword [ebp - 0x18], edx
mov eax, dword [esi + 0xa60]
lea ecx, [ebp - 0x18]
push eax
push str.SoftwareDownloadManagerGrabberStsProjects_ld_
push ecx
mov byte [ebp - 4], 6
call fcn.005fc86b
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x6d1c98
push 0
push ecx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x5b291b
mov edx, dword [ebp - 0x1c]
push edx
call ebx
mov eax, dword [esi + 0xa64]
mov ecx, dword [esi + 0xa60]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
push edx
call fcn.005fc86b
add esp, 0x10
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6d1c98
push 0
push edx
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x5b291b
mov eax, dword [esi + 0x50]
push eax
call fcn.005e71bf
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 str.LocalFileName
push eax
call edi
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.005e71bf
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 + 0x4b0]
push ebx
call fcn.005e71bf
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.00603a3c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x5b2969
mov al, byte [esi + 0xa50]
test al, al
je 0x5b2947
mov ecx, dword [esi + 0xa64]
jmp 0x5b2949
xor ecx, ecx
test al, al
je 0x5b2955
mov eax, dword [esi + 0xa60]
jmp 0x5b2957
xor eax, eax
push ecx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.005c00a0
mov byte [esi + 0xa6a], 1
mov edx, dword [esi + 0x480]
lea ecx, [esi + 0x20]
push edx
call fcn.005bf620
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x5b2999
mov ecx, dword [esi + 0x480]
push ecx
push 0x13cd
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
mov ecx, esi
mov dword [esi + 0xa4c], ebx
mov dword [esi + 0xa5c], ebx
call fcn.005b19e0
lea ecx, [esi + 0x4ac]
call fcn.00555ab0
mov al, byte [esi + 0xa6e]
test al, al
jne 0x5b29e4
cmp dword [esi + 4], ebx
jne 0x5b29dc
cmp dword [esi + 8], ebx
jne 0x5b29dc
mov ecx, esi
call fcn.005b58e0
cmp eax, ebx
je 0x5b29dc
mov al, 1
jmp 0x5b29de
xor al, al
mov byte [esi + 0xa6d], al
mov edi, dword [esi + 0x38]
cmp edi, ebx
je 0x5b29fe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x3c], ecx
jne 0x5b2b29
mov eax, dword [esi + 0x44]
cmp eax, 2
je 0x5b2a0f
cmp eax, 1
jne 0x5b2b29
mov eax, dword [esi + 0x24]
xor bl, bl
test eax, eax
je 0x5b2a41
push str._simtelnet_
push eax
call fcn.005e72b0
add esp, 8
test eax, eax
je 0x5b2a41
mov edx, dword [esi + 0x20]
push str.simtel.net
push edx
call fcn.005e72b0
add esp, 8
test eax, eax
jne 0x5b2a41
mov bl, 1
test dword [esi + 0x16c], 0x80000
jne 0x5b2b29
test bl, bl
jne 0x5b2b29
mov eax, dword [esi + 0xa54]
test eax, eax
jne 0x5b2b29
mov eax, dword [0x6cd768]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x34]
mov byte [ebp - 4], 7
cmp eax, 0x50
jne 0x5b2a81
cmp dword [esi + 0x44], 1
je 0x5b2a8e
cmp eax, 0x1bb
jne 0x5b2aa1
cmp dword [esi + 0x44], 2
jne 0x5b2aa1
lea ecx, [ebp - 0x20]
push 0x6d1c98
push ecx
call fcn.005e7bd3
add esp, 8
jmp 0x5b2ab3
push eax
lea edx, [ebp - 0x20]
push str.:_ld
push edx
call fcn.005e7bd3
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
mov edx, eax
jne 0x5b2ac1
mov edx, 0x6d1c98
test eax, eax
je 0x5b2ad1
mov cl, byte [eax]
cmp cl, 0x2f
mov ecx, 0x6d1c98
je 0x5b2ad6
mov ecx, 0x6a3de4
mov eax, dword [esi + 0x44]
cmp eax, 1
mov eax, 0x6a14d4
je 0x5b2ae8
mov eax, 0x6a1294
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.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
push ecx
mov ecx, esi
call fcn.005b4890
lea ecx, [ebp - 0x18]
mov byte [esi + 0x33a], 1
mov byte [esi + 0x33b], 1
mov byte [ebp - 4], 0
call fcn.00603a3c
lea ebx, [esi + 0xa84]
mov byte [esi + 0x339], 0
mov dword [esi + 0xcc], 0
mov byte [ebp - 0x11], 0
mov eax, dword [ebx]
test eax, eax
jne 0x5b2b4d
lea eax, [ebx + 4]
push eax
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x5b2e27
mov eax, dword [ebx]
test eax, eax
jne 0x5b2b67
lea eax, [ebx + 4]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b2e27
lea edx, [ebp - 0x3c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x488], eax
mov dword [esi + 0x48c], 0
cmp dword [esi + 0x488], 0xffffffff
jne 0x5b2bca
mov eax, dword [esi + 0x48c]
test eax, eax
jne 0x5b2bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b2bca
xor eax, eax
mov dword [esi + 0x488], eax
jmp 0x5b2bef
mov eax, dword [ebp - 0x3c]
push 1
push 0
push 0
push eax
call fcn.005e9a70
mov ecx, dword [esi + 0x488]
add ecx, eax
mov dword [esi + 0x488], ecx
mov eax, dword [esi + 0x48c]
adc eax, edx
push edi
mov dword [esi + 0x48c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.00564ce0
push fcn.00564980
push 0x20
lea ecx, [ebp - 0x691ac]
push 0x3448
push ecx
call fcn.005e7d6c
mov edx, dword [esi]
lea eax, [esi + 0x4ac]
push edx
push eax
lea eax, [esi + 0x20]
lea ecx, [esi + 0x8dc]
push eax
lea eax, [ebp - 0x691ac]
push eax
push ecx
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 8
call fcn.00579810
mov ecx, dword [esi + 0xa58]
lea eax, [esi + 0x14]
mov dword [ebp - 0x898], eax
mov eax, dword [esi + 0xa54]
lea edx, [esi + 0x18]
push eax
mov eax, dword [esi + 0xa60]
mov dword [ebp - 0x894], edx
mov edx, dword [esi + 0xa64]
push ecx
push edx
mov edx, dword [esi + 0x480]
push eax
mov al, byte [esi + 0xa50]
xor ecx, ecx
lea edi, [esi + 0x10]
test al, al
sete cl
push ecx
push edx
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 9
mov dword [ebp - 0x668], esi
mov dword [ebp - 0x89c], edi
mov dword [ebp - 0x7ac], edi
call fcn.005a8a90
mov eax, dword [esi + 0x48c]
mov ecx, dword [esi + 0x488]
push 1
push eax
push ecx
lea ecx, [ebp - 0x8ac]
call fcn.005a9160
mov al, byte [esi + 0xa50]
test al, al
je 0x5b2ce4
xor eax, eax
mov byte [ebp - 0x11], 1
mov dword [esi + 0xa4c], eax
mov dword [ebp - 0x1c], eax
jmp 0x5b2df5
mov eax, dword [ebx]
test eax, eax
jne 0x5b2ced
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 0x5b2d95
mov edx, dword [esi + 0x488]
mov ecx, dword [esi + 0x48c]
mov eax, edx
mov dword [ebp - 0x6e8], ecx
mov dword [ebp - 0x6ec], eax
or eax, ecx
jne 0x5b2d34
mov dword [ebp - 0x724], 0
mov dword [ebp - 0x720], 0
mov dword [esi + 0x490], edx
mov dword [esi + 0x494], ecx
push 0
lea ecx, [ebp - 0x8ac]
mov dword [esi + 0xa4c], 0
call fcn.005a8de0
mov dword [esi + 0x8d4], 3
mov eax, dword [esi + 0x5c]
test eax, eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x11], 1
je 0x5b2d95
mov eax, dword [edi]
test eax, eax
je 0x5b2d8c
push 0
push 0x1472
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ecx, esi
call fcn.005b0b30
mov ecx, ebx
call fcn.00401070
mov eax, 0x6d1c98
test eax, eax
je 0x5b2df5
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b2df5
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x6d1c98
push eax
push eax
call edi
test eax, eax
mov dword [ebx + 8], eax
je 0x5b2df5
lea ecx, [eax + eax + 2]
push ecx
call fcn.005ffe3f
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x5b2df5
mov edx, dword [ebx + 8]
push edx
push eax
push 0xffffffffffffffff
push 0x6d1c98
push 0
push 0
call edi
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x8ac]
mov byte [ebp - 4], 8
call fcn.005798d0
push fcn.00564ce0
push 0x20
lea eax, [ebp - 0x691ac]
push 0x3448
push eax
mov byte [ebp - 4], 0
call fcn.005e6b71
mov al, byte [ebp - 0x11]
test al, al
jne case.default.0x5b2e2f
mov eax, dword [esi + 0x44]
cmp eax, 5
ja case.default.0x5b2e2f
jmp dword [eax*4 + 0x5b2eb4]
mov ecx, esi
call fcn.005ac490
jmp 0x5b2e58
mov ecx, esi
call fcn.005aaf70
jmp 0x5b2e58
mov ecx, esi
call fcn.005ab630
jmp 0x5b2e58
mov ecx, esi
call fcn.005abc10
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