Function at 0x432560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445226
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x45bb20]
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
push ecx
lea ecx, [ebp - 0x450]
call fcn.00403ba0
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
push eax
call fcn.00432c40
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4327bf
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432610
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00402190
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
call fcn.00432c40
mov edx, dword [ebp - 0x438]
lea ebx, [ebp - 0x438]
mov ecx, dword [ebp - 0x428]
lea esi, [ebp - 0x450]
mov eax, dword [ebp - 0x440]
add esp, 4
cmp dword [ebp - 0x424], 8
cmovae ebx, edx
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x454], ebx
cmovae esi, dword [ebp - 0x450]
mov dword [ebp - 0x45c], esi
cmp ecx, eax
ja 0x43277f
test ecx, ecx
je 0x432738
sub eax, ecx
mov ecx, esi
inc eax
lea edx, [esi + eax*2]
mov dword [ebp - 0x458], edx
movzx eax, word [ebx]
sub edx, ecx
sar edx, 1
mov edi, 0
movzx esi, ax
je 0x4326d4
movzx eax, word [ecx]
cmp ax, si
je 0x4326d2
mov edi, edi
cmp edx, 1
je 0x4326d4
movzx eax, word [ecx + 2]
add ecx, 2
dec edx
cmp ax, si
jne 0x4326c0
mov edi, ecx
mov ecx, edi
test ecx, ecx
je 0x432779
movzx edx, word [ecx]
mov eax, ebx
movzx esi, word [ebx]
mov edi, dword [ebp - 0x428]
cmp dx, si
jb 0x43271a
mov ebx, ecx
sub ebx, dword [ebp - 0x454]
cmp dx, si
ja 0x432714
cmp edi, 1
je 0x432725
movzx edx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx esi, word [eax]
cmp dx, si
jae 0x4326fc
mov ebx, dword [ebp - 0x454]
mov edx, dword [ebp - 0x458]
add ecx, 2
jmp 0x4326a5
sub ecx, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x438]
sar ecx, 1
cmp ecx, 0xffffffff
je 0x43277f
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x43297a
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x432768
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4327af
push ecx
push edx
call fcn.0043ca8f
add esp, 8
mov bl, 1
jmp 0x4329c2
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4327bf
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4327b5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4327b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043ca8f
add esp, 8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x4329c0
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432820
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00402190
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
call fcn.00432c40
mov edx, dword [ebp - 0x438]
lea ebx, [ebp - 0x438]
mov edi, dword [ebp - 0x428]
lea esi, [ebp - 0x450]
mov eax, dword [ebp - 0x440]
add esp, 4
cmp dword [ebp - 0x424], 8
cmovae ebx, edx
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x454], ebx
cmovae esi, dword [ebp - 0x450]
mov dword [ebp - 0x458], esi
cmp edi, eax
ja 0x432984
test edi, edi
je 0x432944
sub eax, edi
inc eax
lea ecx, [esi + eax*2]
mov eax, esi
mov dword [ebp - 0x45c], ecx
movzx edx, word [ebx]
sub ecx, eax
sar ecx, 1
mov esi, 0
movzx edx, dx
je 0x4328e0
cmp word [eax], dx
je 0x4328de
jmp 0x4328d0
cmp ecx, 1
je 0x4328e0
add eax, 2
dec ecx
cmp word [eax], dx
jne 0x4328d0
mov esi, eax
mov eax, esi
test eax, eax
je 0x43297e
movzx edx, word [eax]
mov ecx, ebx
movzx esi, word [ebx]
cmp dx, si
jb 0x432920
mov ebx, eax
sub ebx, dword [ebp - 0x454]
cmp dx, si
ja 0x43291a
cmp edi, 1
je 0x432931
movzx edx, word [ecx + ebx + 2]
add ecx, 2
dec edi
movzx esi, word [ecx]
cmp dx, si
jae 0x432902
mov ebx, dword [ebp - 0x454]
mov edi, dword [ebp - 0x428]
add eax, 2
mov ecx, dword [ebp - 0x45c]
jmp 0x4328b5
sub eax, dword [ebp - 0x458]
mov edx, dword [ebp - 0x438]
sar eax, 1
cmp eax, 0xffffffff
je 0x432984
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x43297a
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x432970
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4329b0
push ecx
push edx
call fcn.0043ca8f
add esp, 8
mov bl, 1
jmp 0x4329c2
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4329c0
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4329b6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4329b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043ca8f
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x432a04
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4329fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4329fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0043ca8f
add esp, 8
mov al, bl
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.0043ccfc
mov esp, ebp
pop ebp
ret