Function at 0x409cc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4252fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b8], ebx
call fcn.004118e5
lea eax, [esp + 0x1c0]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x1bc], 1
call fcn.0041e7c2
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1b8], 2
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
jne 0x409d28
push 0x42c74c
jmp 0x409d2d
push str..
lea ecx, [esp + 0x18]
call fcn.0041ed77
mov ecx, dword [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.004119a8
mov esi, eax
lea edx, [esp + 0x48]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x48]
push edx
rep stosd dword es:[edi], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x432784]
xor eax, eax
cmp edx, ebx
sete al
test esi, eax
je 0x40a110
lea ecx, [esp + 0x18]
call fcn.00411bc8
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x40], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e7c2
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1b8], 3
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
jne 0x409dd8
lea edx, [esp + 0x44]
lea ecx, [esp + 0x18]
push edx
call fcn.00411dc0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 4
call fcn.0041edb3
mov byte [esp + 0x1b8], 3
lea ecx, [esp + 0x44]
jmp 0x409e2d
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
call fcn.00411dc0
push eax
lea ecx, [esp + 0x40]
push 0x42b74c
push ecx
mov byte [esp + 0x1c4], 5
call fcn.0041eca4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1bc], 6
call fcn.0041edb3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b8], 5
call fcn.0041ea4d
mov byte [esp + 0x1b8], 3
lea ecx, [esp + 0x34]
call fcn.0041ea4d
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
cmp eax, ebx
je 0x409fb5
cmp dword [esp + 0x1c8], 2
je 0x409e9f
mov eax, dword [esp + 0x10]
push str.C:WINDOWS
push eax
call fcn.00412ef0
add esp, 8
test eax, eax
jne 0x40a0e6
mov ecx, dword [esp + 0x10]
push str.C:winnt
push ecx
call fcn.00412ef0
add esp, 8
test eax, eax
jne 0x40a0e6
mov edx, dword [esp + 0x10]
push str.Program_Files
push edx
call fcn.00412ef0
add esp, 8
test eax, eax
jne 0x40a0e6
mov eax, dword [esp + 0x18]
push 2
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
cmp eax, ebx
jne 0x40a0e6
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x48]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409ee0
cmp cl, bl
je 0x409edc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409ee0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x409ebc
xor eax, eax
jmp 0x409ee5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40a0e6
mov eax, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
cmp eax, ebx
jne 0x40a0e6
mov edx, dword [esp + 0x18]
push 0x100
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
cmp eax, ebx
jne 0x40a0e6
lea ecx, [esp + 0x18]
call fcn.00411b8f
test eax, eax
jne 0x40a0e6
mov eax, dword [esp + 0x18]
push 0x100
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
mov edx, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [edx + 0x38]
mov edi, eax
mov eax, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
mov edx, dword [esp + 0x18]
push 2
lea ecx, [esp + 0x1c]
mov ebp, eax
call dword [edx + 0x38]
mov ecx, dword [0x432778]
push esi
push edi
push ebp
push eax
call fcn.004073d0
test eax, eax
je 0x40a0e6
mov eax, dword [esp + 0x1c4]
cmp eax, ebx
je 0x40a0e6
mov ecx, dword [esp + 0x1c8]
lea edx, [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0041e7c2
call fcn.00409cc0
add esp, 0xc
jmp 0x40a0e6
mov eax, dword [esp + 0x18]
push 0x100
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
mov edx, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [edx + 0x38]
mov edi, eax
mov eax, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
mov edx, dword [esp + 0x18]
push 2
lea ecx, [esp + 0x1c]
mov ebp, eax
call dword [edx + 0x38]
mov ecx, dword [0x432778]
push esi
push edi
push ebp
push eax
call fcn.004073d0
test eax, eax
je 0x40a0e6
push ecx
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00411dc0
mov ecx, dword [0x432778]
call fcn.004071f0
cmp eax, ebx
je 0x40a0e6
mov esi, dword [esp + 0x10]
mov ecx, dword [0x432778]
push esi
push str.fname__s
push ecx
call fcn.00407180
mov eax, dword [esp + 0x1d4]
add esp, 0xc
dec eax
je 0x40a082
dec eax
jne 0x40a0e6
push esi
call dword [0x43219c]
test eax, eax
je 0x40a0e6
push str.44444444444444444444444444444444444444444444444444444444
call fcn.00402960
add esp, 4
push 0x818ea29
push ebx
push esi
call dword [0x432194]
jmp 0x40a0e0
push esi
call dword [0x43219c]
test eax, eax
jne 0x40a0e6
push str.2222222222222222222222222222222222222222222222222222222
call fcn.00402960
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xb0]
push edx
push 0x432358
stosb byte es:[edi], al
call fcn.00406ca0
mov eax, dword [0x43237c]
add esp, 0xc
lea ecx, [esp + 0xac]
push eax
push ecx
push 0x432330
push esi
call dword [0x432198]
inc dword [0x432770]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b8], 2
call fcn.0041ea4d
mov esi, dword [0x432784]
mov eax, dword [esp + 0x40]
xor edx, edx
cmp esi, ebx
sete dl
test eax, edx
jne 0x409d76
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b8], 1
call fcn.0041ea4d
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b8], bl
call fcn.00411922
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.0041ea4d
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1ac
ret