Function at 0x4043f0
Capabilities:
Create thread
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539c3b
mov eax, dword fs:[0]
push eax
sub esp, 0xe68
mov eax, dword [0x589c40]
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 edi, ecx
mov eax, dword [edi + 0x1ec]
mov edx, dword [eax + 0x24]
push 0
lea ecx, [edi + 0x1ec]
mov dword [ebp - 0xe70], edi
call edx
mov eax, dword [edi + 0x234]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x234]
push 0
call edx
mov eax, dword [edi + 0x27c]
mov edx, dword [eax + 0x24]
push 0
lea ecx, [edi + 0x27c]
call edx
lea ecx, [edi + 0x30c]
push 0
call fcn.0041a502
mov eax, dword [edi + 0x3b4]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x3b4]
push 0
call edx
lea ecx, [edi + 0x410]
push 0
call fcn.0041a502
mov eax, dword [edi + 0x494]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x494]
push 0
call edx
mov eax, dword [edi + 0x4dc]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x4dc]
push 0
call edx
mov eax, dword [edi + 0x530]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x530]
push 0
call edx
mov eax, dword [edi + 0x694]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x694]
push 0
call edx
mov eax, dword [edi + 0x5d8]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x5d8]
push 0
call edx
mov eax, dword [edi + 0x62c]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x62c]
push 0
call edx
mov eax, dword [edi + 0x98]
test eax, eax
jne 0x40456c
cmp byte [ebp + 8], al
je 0x40451a
push 5
lea ecx, [edi + 0x30c]
call fcn.0041a502
mov eax, dword [edi + 0x3b4]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x3b4]
push 1
call edx
mov eax, dword [edi + 0x1ec]
mov edx, dword [eax + 0x14]
push 0x5683c0
lea ecx, [edi + 0x1ec]
call edx
mov ecx, dword [edi + 0x3fc]
mov eax, dword [edi + 0x1ec]
mov edx, dword [eax + 0x28]
push ecx
lea ecx, [edi + 0x1ec]
call edx
mov eax, dword [edi + 0x1ec]
lea ecx, [edi + 0x1ec]
jmp 0x4045f0
cmp eax, 1
jne 0x40460f
push 5
lea ecx, [edi + 0x410]
call fcn.0041a502
mov eax, dword [edi + 0x494]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x494]
push 1
call edx
mov eax, dword [edi + 0x4dc]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x4dc]
push 1
call edx
mov eax, dword [edi + 0x530]
mov edx, dword [eax + 0x24]
lea ecx, [edi + 0x530]
push 1
call edx
mov eax, dword [edi + 0x1ec]
mov edx, dword [eax + 0x14]
push 0x5683c8
lea ecx, [edi + 0x1ec]
call edx
mov eax, dword [edi + 0x1ec]
mov edx, dword [eax + 0x24]
push 1
lea ecx, [edi + 0x1ec]
call edx
mov eax, dword [edi + 0x234]
lea ecx, [edi + 0x234]
mov edx, dword [eax + 0x24]
push 1
call edx
mov eax, dword [edi + 0x27c]
mov edx, dword [eax + 0x24]
push 1
lea ecx, [edi + 0x27c]
call edx
jmp 0x40490e
cmp eax, 2
jne 0x4048d0
cmp dword [edi + 0x598], 0
jne 0x404947
push str.ck_Wg
lea ecx, [edi + 0x59c]
call fcn.00409d90
fldz
lea edx, [edi + 0x5b8]
fstp dword [edi + 0x5a0]
call fcn.00412440
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0xe64], eax
fild dword [ebp - 0xe64]
mov eax, dword [edi + 0x20]
fldz
push 0
push 0x24
fsubrp st(1)
lea ecx, [ebp - 0x424]
push ecx
push eax
fstp dword [edi + 0x5a4]
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x25
lea edx, [ebp - 0xa3c]
push edx
push eax
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x14
lea ecx, [ebp - 0x21c]
push ecx
push eax
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x10
lea edx, [ebp - 0x834]
push edx
push eax
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x1a
lea ecx, [ebp - 0xc44]
push ecx
push eax
call esi
mov eax, dword [edi + 0x20]
push 0
push 0x17
lea edx, [ebp - 0x62c]
push edx
push eax
call esi
mov eax, dword [edi + 0x20]
push 0
push 7
lea ecx, [ebp - 0xe4c]
push ecx
push eax
call esi
push 0x28
call fcn.00413b31
add esp, 4
test eax, eax
je 0x4046fa
mov esi, eax
call fcn.00404970
mov esi, eax
mov dword [ebp - 0xe60], esi
jmp 0x40470a
mov dword [ebp - 0xe60], 0
mov esi, dword [ebp - 0xe60]
push esi
lea ecx, [edi + 0x410]
call fcn.00418428
lea edx, [ebp - 0x424]
lea ecx, [esi + 4]
push edx
call fcn.00409d90
lea eax, [ebp - 0xa3c]
lea ecx, [esi + 8]
push eax
call fcn.00409d90
lea edx, [ebp - 0x21c]
lea ecx, [esi + 0xc]
push edx
call fcn.00409d90
lea eax, [ebp - 0x834]
lea ecx, [esi + 0x10]
push eax
call fcn.00409d90
lea ecx, [ebp - 0xc44]
lea ebx, [esi + 0x14]
push ecx
mov ecx, ebx
mov dword [ebp - 0xe64], ebx
call fcn.00409d90
lea edx, [ebp - 0x62c]
lea ecx, [esi + 0x18]
push edx
call fcn.00409d90
mov eax, dword [edi + 0x524]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x578]
push esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
call fcn.00408030
lea eax, [esi + 4]
add esp, 4
push eax
call fcn.00408030
lea eax, [esi + 8]
add esp, 4
push eax
call fcn.00408030
lea eax, [esi + 0xc]
add esp, 4
push eax
call fcn.00408030
lea eax, [esi + 0x10]
add esp, 4
push eax
call fcn.00408030
add esp, 4
push ebx
call fcn.00408030
lea eax, [esi + 0x18]
add esp, 4
push eax
call fcn.00408030
mov eax, dword [esi]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4048a8
lea ecx, [ebp - 0xe6c]
call fcn.0040ab80
mov dword [ebp - 4], 0
call fcn.0041c284
mov eax, dword [eax + 8]
push 0x567f70
push str.WHPATH
push eax
mov dword [ebp - 0xe68], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40486f
mov ebx, dword [ebp - 0xe68]
lea ecx, [ebp - 0xe68]
push ecx
mov esi, eax
lea edi, [ebp - 0xe74]
call fcn.00408000
add esp, 4
test eax, eax
je 0x40485d
mov edx, dword [ebp - 0xe68]
push edx
lea eax, [ebp - 0xe6c]
push 0x567f8c
push eax
call fcn.0040a810
add esp, 0xc
mov esi, dword [ebp - 0xe60]
mov ebx, dword [ebp - 0xe64]
mov edi, dword [ebp - 0xe70]
mov eax, dword [ebp - 0xe6c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0040a410
push 0x5682b0
mov ecx, esi
call fcn.0040a510
push esi
call fcn.00408030
add esp, 4
lea ecx, [ebp - 0xe6c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040aaf0
push 0x5683f0
mov ecx, ebx
call fcn.0040a510
push 0
push 0
push esi
push 0x405790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x598], eax
jmp 0x40490e
cmp eax, 3
jne 0x40490e
mov edx, dword [edi + 0x5d8]
mov eax, dword [edx + 0x24]
lea ecx, [edi + 0x5d8]
push 1
call eax
mov edx, dword [edi + 0x62c]
mov eax, dword [edx + 0x24]
lea ecx, [edi + 0x62c]
push 1
call eax
mov edx, dword [edi + 0x694]
mov eax, dword [edx + 0x24]
lea ecx, [edi + 0x694]
push 1
call eax
mov edx, dword [edi + 0x20]
xor eax, eax
lea ecx, [ebp - 0xe5c]
push ecx
push edx
mov dword [ebp - 0xe5c], eax
mov dword [ebp - 0xe58], eax
mov dword [ebp - 0xe54], eax
mov dword [ebp - 0xe50], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [edi + 0x20]
lea ecx, [ebp - 0xe5c]
call fcn.004139c0
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.005121e3
mov esp, ebp
pop ebp
ret 4