Function at 0x437f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ea4c
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], eax
mov esi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x23
mov ecx, 0x104
lea eax, [esp + 0x194]
mov byte [eax], bl
inc eax
dec ecx
jne 0x437fe5
lea ecx, [esp + 0x194]
push ecx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x4380b8
push ebx
mov edi, 0xf
push 0x47f6a9
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00409480
mov dword [esp + 0x3b0], ebx
lea ebx, [esp + 0x20]
lea esi, [esp + 0xbc]
call fcn.00407fd0
cmp dword [esp + 0x34], 0x10
jb 0x438051
mov edx, dword [esp + 0x20]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov esi, vtable.Exception.0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov dword [esp + 0xbc], esi
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x3b8], 1
call fcn.00438320
add esp, 4
mov ecx, eax
call fcn.0040d320
push eax
lea ecx, [esp + 0x108]
call fcn.00402180
push 0x488f4c
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x10c], esi
call fcn.00450350
cmp dword [esi + 0x10], ebx
mov ebx, 8
je 0x4380d8
cmp dword [esi + 0x14], ebx
jb 0x4380c9
mov esi, dword [esi]
push esi
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
xor esi, esi
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push 0x495c0c
mov byte [ecx], 0
call fcn.00409390
lea eax, [esp + 0x74]
push eax
call fcn.004025e0
add esp, 0x20
cmp dword [eax + 0x14], ebx
jb 0x438111
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x6c], ebx
jb 0x438133
mov edx, dword [esp + 0x58]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x194]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x438150
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x198]
push ecx
lea ecx, [esp + 0x44]
call fcn.004098e0
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x3b4], 2
call fcn.00426960
add esp, 4
test al, al
mov esi, 8
sete bl
mov dword [esp + 0x3b0], 0xffffffff
cmp dword [esp + 0x50], esi
jb 0x4381b1
mov eax, dword [esp + 0x3c]
push eax
call fcn.0044d9f1
add esp, 4
test bl, bl
je 0x438202
lea ecx, [esp + 0x14c]
call fcn.004020c0
mov ecx, eax
mov dword [esp + 0x3b0], 3
call fcn.0041d820
lea edi, [esp + 0x194]
mov ecx, eax
call fcn.00438470
push eax
lea ecx, [esp + 0x78]
call fcn.00402180
push 0x488f4c
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.Exception.0
call fcn.00450350
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], esi
jb 0x43820d
mov eax, dword [eax]
push eax
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [esp + 0x194]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438240
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x198]
push ecx
mov ecx, edi
call fcn.004098e0
mov eax, edi
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret