Function at 0x43a360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574f28
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5eabd8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x10]
call fcn.00414a30
mov dword [ebp - 4], 0
push 0x590e38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43a4fa
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push str.SHGetKnownFolderPath
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43a4fa
mov ecx, dword [0x590de8]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x590dec]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x590df0]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x590df4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x24c]
sub eax, 1
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 3
ja case.default.0x43a434
mov ecx, dword [ebp - 0x24c]
jmp dword [ecx*4 + 0x43a630]
mov edx, dword [0x590df8]
mov dword [ebp - 0x30], edx
mov eax, dword [0x590dfc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x590e00]
mov dword [ebp - 0x28], ecx
mov edx, dword [0x590e04]
mov dword [ebp - 0x24], edx
jmp case.default.0x43a434
mov eax, dword [0x590e08]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x590e0c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [0x590e10]
mov dword [ebp - 0x28], edx
mov eax, dword [0x590e14]
mov dword [ebp - 0x24], eax
jmp case.default.0x43a434
mov ecx, dword [0x590e18]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x590e1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x590e20]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x590e24]
mov dword [ebp - 0x24], ecx
jmp case.default.0x43a434
mov edx, dword [0x590e28]
mov dword [ebp - 0x30], edx
mov eax, dword [0x590e2c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x590e30]
mov dword [ebp - 0x28], ecx
mov edx, dword [0x590e34]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
call dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x43a4fa
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0043b350
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x10]
call fcn.0041bec0
movzx ecx, al
test ecx, ecx
je 0x43a5b1
mov dword [ebp - 0x38], 0x1a
push 0x208
push 0
lea edx, [ebp - 0x244]
push edx
call fcn.004aeb90
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 1
je 0x43a547
cmp dword [ebp - 0x250], 4
je 0x43a550
jmp 0x43a557
mov dword [ebp - 0x38], 0x1c
jmp 0x43a557
mov dword [ebp - 0x38], 0x2b
lea ecx, [ebp - 0x244]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x38]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x43a5a2
push 0x590e68
mov ecx, dword [ebp + 8]
call fcn.0043b2d0
mov eax, dword [ebp - 0x248]
or eax, 1
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c360
mov eax, dword [ebp + 8]
jmp 0x43a616
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043b350
lea ecx, [ebp - 0x10]
call fcn.0041bec0
movzx edx, al
test edx, edx
jne 0x43a5e9
lea ecx, [ebp - 0x10]
call fcn.0041c3c0
sub eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.004397a0
movsx eax, al
cmp eax, 0x5c
je 0x43a5e9
push 0x590e6c
lea ecx, [ebp - 0x10]
call fcn.0043b0b0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414a50
mov edx, dword [ebp - 0x248]
or edx, 1
mov dword [ebp - 0x248], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c360
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004adaab
mov esp, ebp
pop ebp
ret