Function at 0x4281e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c9577
mov eax, dword fs:[0]
push eax
sub esp, 0x794
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x790], eax
push ebx
push esi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x7a0]
mov dword fs:[0], eax
mov al, byte [edi + 4]
mov esi, ecx
test al, al
jne 0x428231
call fcn.0042c990
push str.Win7
jmp 0x4284e1
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x396]
push ecx
mov word [esp + 0x398], ax
call fcn.004a7380
add esp, 0xc
push 0x104
lea edx, [esp + 0x390]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4284d5
inc eax
cmp eax, 0x104
jae 0x4284d5
call fcn.00428580
mov bl, al
mov byte [esp + 0x13], bl
test bl, bl
jne 0x4282df
push str.SystemDirectory:
lea ecx, [esp + 0x18]
call fcn.00430a60
lea eax, [esp + 0x38c]
push eax
push 0x4f0ffc
lea edx, [esp + 0x1c]
mov dword [esp + 0x7b0], 0
call fcn.00430eb0
add esp, 8
lea eax, [esp + 0x20]
cmp byte [esp + 0x130], bl
jne 0x4282ca
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call fcn.004286f0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00430ad0
cmp byte [edi + 0x370], 0
lea eax, [edi + 0x260]
jne 0x4282f4
mov eax, dword [edi + 0x25c]
add eax, 4
push eax
lea ecx, [esp + 0x140]
call fcn.00430a60
lea eax, [esp + 0x38c]
mov dword [esp + 0x7a8], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428320
sub eax, edx
sar eax, 1
cmp byte [esp + 0x258], cl
lea ecx, [esp + 0x148]
jne 0x428346
mov ecx, dword [esp + 0x144]
push eax
lea edx, [esp + 0x390]
push edx
add ecx, 4
push ecx
call fcn.004a669b
add esp, 0xc
test eax, eax
jne 0x428371
mov byte [edi + 0x1d46], 1
test bl, bl
jne 0x428382
push str.Cur_Proc_Is_Special
jmp 0x42837a
test bl, bl
jne 0x428382
push str.Cur_Proc_Isnt_Special
call fcn.004286f0
add esp, 4
cmp byte [edi + 0x1d46], 0
jne 0x4284a1
lea ecx, [esp + 0x264]
call fcn.00430920
lea eax, [esp + 0x38c]
lea edx, [esp + 0x264]
call fcn.00430b00
lea ecx, [esp + 0x14]
call fcn.00429ba0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x7ac], 4
call fcn.0042b500
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x59e]
push edx
mov word [esp + 0x5a0], cx
call fcn.004a7380
add esp, 0xc
lea eax, [esp + 0x594]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test bl, bl
jne 0x428417
lea ecx, [esp + 0x594]
push ecx
call fcn.004286f0
add esp, 4
mov bl, byte [esp + 0x130]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
test bl, bl
jne 0x42842c
mov eax, esi
add eax, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428432
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x20]
test bl, bl
jne 0x42844b
mov ecx, esi
push eax
add ecx, 4
push ecx
lea edx, [esp + 0x59c]
push edx
call fcn.004a669b
add esp, 0xc
test eax, eax
jne 0x428478
mov byte [edi + 0x1d46], 1
cmp byte [esp + 0x13], al
jne 0x42848c
push str.Cur_Proc_Is_Special
jmp 0x428484
cmp byte [esp + 0x13], 0
jne 0x42848c
push str.Cur_Proc_Isnt_Special
call fcn.004286f0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00430ad0
lea ecx, [esp + 0x264]
call fcn.00430ad0
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4284d1
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x4284d1
push eax
call fcn.004a4a7f
add esp, 4
mov al, 1
jmp 0x4284f2
mov ecx, esi
call fcn.0042c990
push 0x4f0f4c
push 0x4f0ffc
mov edx, eax
call fcn.00430eb0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x7a0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x790]
xor ecx, esp
call fcn.004a4a25
add esp, 0x7a0
ret