Function at 0x4061d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get common file path
Get kernel32 base address
Get program files directory
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x44d2ac
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4651b0]
xor eax, esp
mov dword [esp + 0x434], eax
push ebx
push ebp
push esi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov dword [edi], vtable.PathConverter.0
mov esi, 7
xor ebp, ebp
mov dword [edi + 0x20], esi
mov dword [edi + 0x1c], ebp
xor eax, eax
mov ebx, vtable.TString.0
mov word [edi + 0xc], ax
mov dword [esp + 0x30], edi
mov dword [edi + 4], ebx
mov dword [esp + 0x450], ebp
mov dword [edi + 0x40], esi
mov dword [edi + 0x3c], ebp
xor ecx, ecx
mov word [edi + 0x2c], cx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x60], esi
mov dword [edi + 0x5c], ebp
xor edx, edx
mov word [edi + 0x4c], dx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x80], esi
mov dword [edi + 0x7c], ebp
mov word [edi + 0x6c], ax
mov dword [edi + 0x64], ebx
mov dword [edi + 0xa0], esi
mov dword [edi + 0x9c], ebp
mov word [edi + 0x8c], cx
mov dword [edi + 0x84], ebx
mov dword [edi + 0xc0], esi
mov dword [edi + 0xbc], ebp
mov word [edi + 0xac], dx
mov dword [edi + 0xa4], ebx
push 0x40e
lea ecx, [esp + 0x3a]
push ebp
mov byte [esp + 0x458], 5
push ecx
mov word [esp + 0x40], ax
call fcn.0043ad60
add esp, 0xc
push 1
push 0x24
lea edx, [esp + 0x3c]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4062e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00401760
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [edi + 8]
mov eax, esi
mov byte [esp + 0x458], 6
call fcn.00401670
mov byte [esp + 0x450], 5
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ebx
jb 0x406336
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00438e12
add esp, 4
push 1
push 0x45201c
lea eax, [edi + 8]
call fcn.00404520
push 0x410
lea edx, [esp + 0x38]
push ebp
push edx
call fcn.0043ad60
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406382
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00401760
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [edi + 0x28]
mov eax, esi
mov byte [esp + 0x458], 7
call fcn.00401670
mov byte [esp + 0x450], 5
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ebx
jb 0x4063d8
mov edx, dword [esp + 0x18]
push edx
call fcn.00438e12
add esp, 4
push 0x410
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.0043ad60
add esp, 0xc
push 1
push 0x28
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
lea eax, [esp + 0x34]
mov word [esp + 0x18], dx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406415
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00401760
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [edi + 0x48]
mov eax, esi
mov byte [esp + 0x458], 8
call fcn.00401670
mov byte [esp + 0x450], 5
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ebx
jb 0x40646b
mov eax, dword [esp + 0x18]
push eax
call fcn.00438e12
add esp, 4
push 1
push 0x45201c
lea eax, [edi + 0x48]
call fcn.00404520
push 0x410
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.0043ad60
add esp, 0xc
push 1
push 0x1a
lea edx, [esp + 0x3c]
push edx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4064b7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00401760
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [edi + 0x68]
mov eax, esi
mov byte [esp + 0x458], 9
call fcn.00401670
mov byte [esp + 0x450], 5
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ebx
jb 0x40650d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00438e12
add esp, 4
push 1
push 0x45201c
lea eax, [edi + 0x68]
call fcn.00404520
push 0x410
lea edx, [esp + 0x38]
push ebp
push edx
call fcn.0043ad60
add esp, 0xc
push 1
push 0x26
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406560
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00401760
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [edi + 0x88]
mov eax, esi
mov byte [esp + 0x458], 0xa
call fcn.00401670
mov byte [esp + 0x450], 5
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ebx
jb 0x4065b9
mov edx, dword [esp + 0x18]
push edx
call fcn.00438e12
add esp, 4
push 1
push 0x45201c
lea eax, [edi + 0x88]
call fcn.00404520
push 0x410
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.0043ad60
add esp, 0xc
push 1
push ebp
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
lea eax, [esp + 0x34]
mov word [esp + 0x18], dx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406607
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x18]
call fcn.00401760
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
push ebp
lea ecx, [edi + 0xa8]
mov eax, esi
mov byte [esp + 0x458], 0xb
call fcn.00401670
mov byte [esp + 0x450], 5
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], ebx
jb 0x406660
mov eax, dword [esp + 0x18]
push eax
call fcn.00438e12
add esp, 4
push 1
push 0x45201c
lea eax, [edi + 0xa8]
call fcn.00404520
mov eax, edi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.00438b17
add esp, 0x444
ret