Function at 0x45c030
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a199e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4c4008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x2a0], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c150
sub ecx, edx
lea eax, [ebp - 0x5c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00402760
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x288], 0
lea edx, [eax + 2]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c1b0
sub eax, edx
lea ecx, [ebp - 0x298]
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00402760
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x27c]
call fcn.004687a0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x284]
cmp edx, 8
jb 0x45c237
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c22d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c22d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x45c29a
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c290
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c290
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
xor eax, eax
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
call fcn.0046ab10
test al, al
jne 0x45c2cd
xor bl, bl
jmp 0x45c3be
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.00495a64
add esp, 4
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push 0x80000000
push eax
lea ecx, [ebp - 0x280]
call fcn.0047c0c0
test al, al
jne 0x45c375
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x45c371
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45c35c
test eax, eax
je 0x45c35c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.00495a94
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x45c3be
push esi
lea ecx, [ebp - 0x280]
call fcn.0047c250
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x45c3be
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45c3a9
test eax, eax
je 0x45c3a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.00495a94
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x45c407
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c3fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c3fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00495a94
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
mov al, bl
mov dword [ebp - 0x268], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495a53
mov esp, ebp
pop ebp
ret 4