Function at 0x431850
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1f8]
sub esp, 0x1f8
push 0xfffffffffffffffe
push 0x470050
push 0x408890
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x473534]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1f4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
xor ecx, ecx
xor esi, ecx
jge 0x43189b
neg esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x4318bf
xor esi, esi
add ecx, 1
cmp ecx, 0xa
jl 0x431895
xor eax, eax
lea esp, [esp]
or esi, eax
add eax, 1
cmp eax, 0x18
jl 0x4318d0
test esi, esi
jle 0x4318e1
lea esi, [esi + esi*2]
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xb
mov edx, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub edx, ecx
jne 0x431904
call edi
mov esi, eax
xor ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ecx
sub edx, eax
cmp edx, 1
jne 0x43191f
and esi, ecx
jmp 0x431921
or esi, ecx
add ecx, 1
cmp ecx, 0xe
jl 0x431906
xor ecx, ecx
jmp 0x431930
xor esi, ecx
jge 0x431936
neg esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x43195a
xor esi, esi
add ecx, 1
cmp ecx, 2
jl 0x431930
test esi, esi
jle 0x431969
lea esi, [esi + esi*2]
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xb
mov edx, esi
sub edx, ecx
jne 0x431986
call edi
mov esi, eax
or esi, 3
jle 0x43198e
lea esi, [esi + esi*2]
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
jne 0x4319ab
call edi
mov esi, eax
mov edi, 2
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test esi, esi
jle 0x4319bd
lea esi, [esi + esi*4]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, esi
sub eax, edx
jne 0x4319d7
lea esi, [eax + 0xb]
push 0xfa
lea ecx, [ebp]
push ecx
call ebx
sub edi, 1
jne 0x4319b6
mov edi, 3
lea esp, [esp]
test esi, esi
jle 0x4319f7
lea esi, [esi + esi*4]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, esi
sub eax, edx
jne 0x431a11
lea esi, [eax + 0xb]
push 0xfa
lea ecx, [ebp]
push ecx
call ebx
sub edi, 1
jne 0x4319f0
mov edi, 5
test esi, esi
jle 0x431a2d
lea esi, [esi + esi*4]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, esi
sub eax, edx
jne 0x431a47
lea esi, [eax + 0xb]
push 0xfa
lea ecx, [ebp]
push ecx
call ebx
sub edi, 1
jne 0x431a26
xor ecx, ecx
lea esp, [esp]
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 1
je 0x431a7f
cmp eax, 4
je 0x431a7f
and esi, ecx
jmp 0x431a81
sub esi, ecx
add ecx, 1
cmp ecx, 4
jl 0x431a60
push 0xfa
lea eax, [ebp]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call ebx
mov edi, 6
nop
test esi, esi
jle 0x431aa7
lea esi, [esi + esi*4]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov edx, esi
sub edx, ecx
jne 0x431ac1
lea esi, [edx + 0xb]
push 0xfa
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
sub edi, 1
jne 0x431aa0
test esi, esi
jle 0x431adc
lea esi, [esi + esi*4]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov edx, esi
sub edx, ecx
jne 0x431af6
lea esi, [edx + 0xb]
push 0xfa
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
and esi, 1
or esi, 2
xor esi, esi
push 0xfa
lea ecx, [ebp]
push ecx
call ebx
and esi, 1
or esi, 3
and esi, 4
or esi, 7
mov dword [ebp - 0x1c], esi
jle 0x431b2f
lea esi, [esi + esi*2]
mov dword [ebp - 0x1c], esi
mov eax, 0x2e8ba2e9
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb
mov ecx, esi
sub ecx, eax
jne 0x431b53
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 4
jge 0x431ba8
mov eax, esi
cdq
sub eax, edx
sar eax, 1
and eax, 0x80000001
jns 0x431b77
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
je 0x431ba0
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x431ba3
xor esi, esi
mov dword [ebp - 0x1c], esi
add ecx, 1
jmp 0x431b5c
mov dword [ebp - 4], 0xfffffffe
call fcn.00431c28
push 0xfa
lea ecx, [ebp]
push ecx
call ebx
test esi, esi
jge 0x431bc5
neg esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, esi
sub eax, edx
jne 0x431bef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jge 0x431bf5
neg esi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov edx, esi
sub edx, ecx
jne 0x431c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x431c34
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1f4]
xor ecx, ebp
call fcn.0040473f
add ebp, 0x1f8
mov esp, ebp
pop ebp
ret