Function at 0x409090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a670
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.0040d410
test eax, eax
je 0x4090cf
jmp 0x409894
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x674], 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040d430
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 2
jne 0x409111
push 1
mov ecx, dword [ebp - 0x18c]
call fcn.00408e6d
jmp 0x409894
cmp dword [ebp - 0x180], 0
je 0x40911f
jmp 0x409894
cmp dword [0x5b1088], 0
jle 0x40914e
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x1c], 0
je 0x40914e
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x80c], 0
jne 0x40914e
mov ecx, dword [ebp - 0x18c]
call fcn.0045d2a0
mov ecx, dword [ebp - 0x18c]
call fcn.0046d960
mov ecx, dword [ebp - 0x18c]
call fcn.0046dc70
mov ecx, dword [ebp - 0x18c]
call fcn.00427130
lea ecx, [ebp - 0x178]
call fcn.00477cf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00477cf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00477cf0
mov byte [ebp - 4], 2
push 0x5b0a4c
lea ecx, [ebp - 0x13c]
call fcn.00478060
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x154], ecx
cmp dword [ebp - 0x154], 0x2710
je 0x4091d9
cmp dword [ebp - 0x154], 0x2af8
jne 0x4091eb
mov edx, dword [ebp - 0x18c]
mov dword [edx + 0xd8], 1
jmp 0x40923d
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.00458fd0
test eax, eax
jne 0x409224
cmp dword [ebp - 0x154], 0
je 0x409212
cmp dword [ebp - 0x154], 2
jne 0x409222
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0xd8], 1
jmp 0x40923d
cmp dword [ebp - 0x154], 2
jne 0x40923d
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, 0x798
push edx
mov eax, dword [ebp - 0x18c]
add eax, 0x784
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x770
push ecx
lea edx, [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.004119d0
test eax, eax
je 0x4092c6
push 0
push 0
push 0xc
push 0x59b528
push 0x800
push 0x4f5
push 0x59b030
push 0
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x18c]
call fcn.0041d8f0
test eax, eax
je 0x4092c6
mov dword [ebp - 0x190], 1
jmp 0x4092d0
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 0x40932c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408ce0
jmp 0x409894
lea edx, [ebp - 0x11c]
push edx
push 0
push 0x59c5d0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x89c
call fcn.0040d400
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x409398
push 0x59c5d4
call fcn.004e3020
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408ce0
jmp 0x409894
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00528088
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
push ecx
lea ecx, [ebp - 0x150]
call fcn.00478400
test eax, eax
jne 0x409412
push 0x59c5e8
call fcn.004e3020
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408ce0
jmp 0x409894
mov ecx, dword [ebp - 0x18c]
add ecx, 0x1f4
call fcn.0040d3c0
test eax, eax
jne 0x40945b
push 0x59c5fc
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.005282db
mov edx, dword [ebp - 0x18c]
add edx, 0x1f4
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00528317
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov eax, 1
test eax, eax
je 0x409652
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d7b90
test eax, eax
jne 0x4094ab
jmp 0x409652
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d7bd0
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xbc
call fcn.004c9750
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xbc
call fcn.0040e730
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x128]
jae 0x40963e
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.004d1850
add esp, 4
test eax, eax
jne 0x409531
jmp 0x4094f9
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 0x409629
mov esi, dword [ebp - 0x10]
sub esi, 1
mov ecx, dword [ebp - 0x160]
add ecx, 0xbc
call fcn.004c9750
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.00463fa0
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x40960f
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x17c]
je 0x40960d
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, 0xbc
call fcn.004c9750
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 0x409629
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.004ced60
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x4094f9
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
jmp 0x409476
cmp dword [ebp - 0x18], 0
jne 0x409661
cmp dword [ebp - 0x15c], 0
je 0x4096cf
lea ecx, [ebp - 0x188]
call fcn.0040d3a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x409686
push 0x59c600
lea ecx, [ebp - 0x188]
call fcn.00528088
cmp dword [ebp - 0x15c], 0
je 0x40969f
push 0x59c648
lea ecx, [ebp - 0x188]
call fcn.005282db
lea ecx, [ebp - 0x188]
call fcn.0040d400
push eax
call fcn.004e2fb0
add esp, 4
push 0
mov ecx, dword [ebp - 0x18c]
call fcn.00460980
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00527eff
push 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040d380
push 0
push 0
push 0x36a
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x8b0]
call fcn.0040e0b0
push 1
push 0x59c684
mov ecx, dword [ebp - 0x18c]
call fcn.00460aa0
push 1
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8b0]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x8b0]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x8b0]
add ecx, 0x904
call fcn.0040e6e0
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8b0]
add ecx, 0x818
call fcn.004955f0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x684
call fcn.0040e840
mov ecx, dword [ebp - 0x18c]
add ecx, 0x698
call fcn.0040e840
mov ecx, dword [ebp - 0x18c]
add ecx, 0x6ac
call fcn.0040e840
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x8b0]
cmp dword [eax + 0x664], 0
je 0x4097bf
push 0
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8b0]
add ecx, 0x648
call fcn.0040e0e0
lea edx, [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x498
call fcn.00478190
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x76c], 0
cmp dword [ebp + 8], 0
je 0x409850
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x610
call fcn.0040e8a0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x624
call fcn.0040e8a0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x638
call fcn.0040e8a0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x64c
call fcn.0040e8a0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x660
call fcn.0040e8a0
push 0
push 0
push 0
push 0
push 0
push 0x427200
call fcn.0052cc52
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8