Function at 0x408e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push esi
mov dword [ebp - 0x18c], ecx
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040bc30
test eax, eax
je 0x408e5f
jmp 0x409626
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x670], 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040bc50
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 2
jne 0x408ea1
push 1
mov ecx, dword [ebp - 0x18c]
call fcn.00408bfd
jmp 0x409626
cmp dword [ebp - 0x180], 0
je 0x408eaf
jmp 0x409626
cmp dword [0x5999a8], 0
jle 0x408ede
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x1c], 0
je 0x408ede
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x808], 0
jne 0x408ede
mov ecx, dword [ebp - 0x18c]
call fcn.00459b00
mov ecx, dword [ebp - 0x18c]
call fcn.00469d30
mov ecx, dword [ebp - 0x18c]
call fcn.0046a040
mov ecx, dword [ebp - 0x18c]
call fcn.00424ff0
lea ecx, [ebp - 0x178]
call fcn.004733a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.004733a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.004733a0
mov byte [ebp - 4], 2
push 0x59936c
lea ecx, [ebp - 0x13c]
call fcn.00473710
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x154], ecx
cmp dword [ebp - 0x154], 0x2710
je 0x408f69
cmp dword [ebp - 0x154], 0x2af8
jne 0x408f7b
mov edx, dword [ebp - 0x18c]
mov dword [edx + 0xd8], 1
jmp 0x408fcd
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.004558d0
test eax, eax
jne 0x408fb4
cmp dword [ebp - 0x154], 0
je 0x408fa2
cmp dword [ebp - 0x154], 2
jne 0x408fb2
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0xd8], 1
jmp 0x408fcd
cmp dword [ebp - 0x154], 2
jne 0x408fcd
mov ecx, dword [ebp - 0x18c]
mov dword [ecx + 0xd8], 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18c]
add edx, 0x794
push edx
mov eax, dword [ebp - 0x18c]
add eax, 0x780
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x76c
push ecx
lea edx, [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.0040fcf0
test eax, eax
je 0x409058
push 0xffffffffffffffff
push 0
push 0
push 0xe
push 0x585384
push 0x800
push 0x4c2
push 0x584ec0
push 0
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x18c]
call fcn.0041bb80
test eax, eax
je 0x409058
mov dword [ebp - 0x190], 1
jmp 0x409062
mov dword [ebp - 0x190], 0
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x154]
mov dword [eax + 0xd8], ecx
cmp dword [ebp - 0x164], 0
jne 0x4090be
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408a20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408a20
jmp 0x409626
lea edx, [ebp - 0x11c]
push edx
push 0
push 0x586434
mov ecx, dword [ebp - 0x18c]
add ecx, 0x898
call fcn.0040bc20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40912a
push 0x586438
call fcn.004dc5d0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408a20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408a20
jmp 0x409626
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00519b43
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
push ecx
lea ecx, [ebp - 0x150]
call fcn.00473ab0
test eax, eax
jne 0x4091a4
push 0x58644c
call fcn.004dc5d0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408a20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408a20
jmp 0x409626
mov ecx, dword [ebp - 0x18c]
add ecx, 0x1f4
call fcn.0040bbe0
test eax, eax
jne 0x4091ed
push 0x586460
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00519d96
mov edx, dword [ebp - 0x18c]
add edx, 0x1f4
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00519dd2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov eax, 1
test eax, eax
je 0x4093e4
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d2de0
test eax, eax
jne 0x40923d
jmp 0x4093e4
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d2e20
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.004c4e50
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.0040cb40
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x128]
jae 0x4093d0
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x191], cl
mov dl, byte [ebp - 0x191]
push edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
call fcn.004ccb50
add esp, 4
test eax, eax
jne 0x4092c3
jmp 0x40928b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 6]
and eax, 4
test eax, eax
je 0x4093bb
mov esi, dword [ebp - 0x10]
sub esi, 1
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.004c4e50
sub esi, eax
mov dword [ebp - 0x17c], esi
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.004606d0
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x4093a1
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x17c]
je 0x40939f
mov dword [ebp - 0x15c], 1
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 6]
and edx, 0x784
mov word [ebp - 0x184], dx
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 6]
and cx, 0xf87b
mov edx, dword [ebp - 0x14]
mov word [edx + 6], cx
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.004c4e50
mov ecx, dword [ebp - 0x120]
lea edx, [eax + ecx + 7]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
mov cx, word [eax]
or cx, word [ebp - 0x184]
mov edx, dword [ebp - 0x198]
mov word [edx], cx
jmp 0x4093bb
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 6]
and cx, 0xf87b
mov edx, dword [ebp - 0x14]
mov word [edx + 6], cx
mov ecx, dword [ebp - 0x10]
call fcn.004ca570
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x40928b
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
jmp 0x409208
cmp dword [ebp - 0x18], 0
jne 0x4093f3
cmp dword [ebp - 0x15c], 0
je 0x409461
lea ecx, [ebp - 0x188]
call fcn.0040bbc0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x409418
push 0x586464
lea ecx, [ebp - 0x188]
call fcn.00519b43
cmp dword [ebp - 0x15c], 0
je 0x409431
push 0x5864ac
lea ecx, [ebp - 0x188]
call fcn.00519d96
lea ecx, [ebp - 0x188]
call fcn.0040bc20
push eax
call fcn.004dc560
add esp, 4
push 0
mov ecx, dword [ebp - 0x18c]
call fcn.0045d200
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00519a06
push 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040bba0
push 0
push 0
push 0x36a
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x8ac]
call fcn.0040c760
push 1
push 0x5864e8
mov ecx, dword [ebp - 0x18c]
call fcn.0045d320
push 1
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8ac]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x8ac]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x8ac]
add ecx, 0x904
call fcn.0040caf0
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8ac]
add ecx, 0x818
call fcn.00490ce0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x680
call fcn.0040cba0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x694
call fcn.0040cba0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x6a8
call fcn.0040cba0
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x8ac]
cmp dword [eax + 0x664], 0
je 0x409551
push 0
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8ac]
add ecx, 0x648
call fcn.0040c790
lea edx, [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x498
call fcn.00473840
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x768], 0
cmp dword [ebp + 8], 0
je 0x4095e2
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x60c
call fcn.0040cc00
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x620
call fcn.0040cc00
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x634
call fcn.0040cc00
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x648
call fcn.0040cc00
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x65c
call fcn.0040cc00
push 0
push 0
push 0
push 0
push 0
push 0x4250c0
call fcn.0051e14e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408a20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408a20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8