Function at 0x431b00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x444eba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [0x452504]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x154], eax
mov eax, dword [edi + 0x88]
mov esi, 7
cmp eax, esi
mov dword [esp + 0x14], edi
je 0x431b50
mov dword [edi + 0x88], esi
mov dword [edi + 0x9c], 2
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov ecx, dword [esp + 0x168]
push ebx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x168], ebx
call fcn.00433650
cmp dword [esp + 0x16c], ebx
je 0x431c2e
push esi
push str.WINDOWS
push esi
push 1
lea ecx, [esp + 0x44]
call fcn.00402820
test eax, eax
jne 0x431c9e
push 0x104
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x50]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x431bc0
sub eax, edx
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x431be0
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
call fcn.00402c70
push esi
push ebx
lea eax, [esp + 0x20]
push eax
push 9
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x174], 1
call fcn.00430ec0
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x160], bl
jb 0x431c2e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00435091
add esp, 4
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
mov eax, dword [esp + 0x38]
mov ecx, eax
jae 0x431c41
lea ecx, [esp + 0x38]
mov esi, dword [esp + 0x48]
add ecx, esi
cmp edx, 0x10
jae 0x431c50
lea eax, [esp + 0x38]
cmp eax, ecx
je 0x431c61
cmp byte [eax], 0x2f
jne 0x431c5c
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jne 0x431c54
push 0x70
call fcn.0043565d
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov byte [esp + 0x160], 4
je 0x431da8
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0041bdb0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov edi, dword [esp + 0x14]
mov byte [esi], bl
mov ebp, esi
jmp 0x431daa
push 6
push str.SYSTEM
push 6
push 1
lea ecx, [esp + 0x44]
call fcn.00402820
test eax, eax
jne 0x431d20
push 0x104
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x50]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x431cd0
sub eax, edx
mov esi, eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402e80
push esi
push ebx
lea ecx, [esp + 0x20]
push ecx
push 8
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x174], 2
call fcn.00430ec0
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x160], bl
jb 0x431c2e
mov edx, dword [esp + 0x1c]
push edx
jmp 0x431c26
push 4
push str.TEMP
push 4
push 1
lea ecx, [esp + 0x44]
call fcn.00402820
test eax, eax
jne 0x431d9a
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x50]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x431d50
lea ecx, [esp + 0x50]
sub eax, edx
push ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00402e80
dec esi
push esi
push ebx
lea edx, [esp + 0x20]
push edx
push 6
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x174], 3
call fcn.00430ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], bl
call fcn.00430c60
jmp 0x431c2e
lea ecx, [esp + 0x34]
call fcn.00430c60
jmp 0x431e54
xor ebp, ebp
cmp ebp, ebx
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x160], bl
mov dword [esp + 0x10], ebp
je 0x431e42
cmp eax, 0x10
mov eax, dword [esp + 0x38]
jae 0x431dce
lea eax, [esp + 0x38]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x431dd2
mov eax, dword [edi + 0x9c]
cmp eax, 2
jne 0x431e17
mov esi, dword [edi + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
mov ecx, edi
call fcn.0041bdd0
mov ebx, dword [esp + 0x14]
push 1
mov ecx, ebx
mov edi, eax
call fcn.004312d0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov dword [ebx + 0x18], ebp
jmp 0x431e3e
cmp eax, 3
jne 0x431e26
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0xc]
jmp 0x431e36
cmp eax, 4
jne 0x431e3e
lea edx, [esp + 0x10]
push edx
lea ecx, [edi + 0x90]
call fcn.00431ac0
mov dword [edi + 0x18], ebp
mov eax, dword [esp + 0x4c]
cmp eax, 0x10
jb 0x431e54
mov eax, dword [esp + 0x38]
push eax
call fcn.00435091
add esp, 4
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
pop ebx
call fcn.00435083
add esp, 0x154
ret 8