Function at 0x409130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a790
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.0040d530
test eax, eax
je 0x40916f
jmp 0x409934
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x674], 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040d550
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 2
jne 0x4091b1
push 1
mov ecx, dword [ebp - 0x18c]
call fcn.00408f0d
jmp 0x409934
cmp dword [ebp - 0x180], 0
je 0x4091bf
jmp 0x409934
cmp dword [0x5b1088], 0
jle 0x4091ee
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x1c], 0
je 0x4091ee
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x80c], 0
jne 0x4091ee
mov ecx, dword [ebp - 0x18c]
call fcn.0045d3a0
mov ecx, dword [ebp - 0x18c]
call fcn.0046da60
mov ecx, dword [ebp - 0x18c]
call fcn.0046dd70
mov ecx, dword [ebp - 0x18c]
call fcn.00427250
lea ecx, [ebp - 0x178]
call fcn.00477df0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00477df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00477df0
mov byte [ebp - 4], 2
push 0x5b0a4c
lea ecx, [ebp - 0x13c]
call fcn.00478160
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x154], ecx
cmp dword [ebp - 0x154], 0x2710
je 0x409279
cmp dword [ebp - 0x154], 0x2af8
jne 0x40928b
mov edx, dword [ebp - 0x18c]
mov dword [edx + 0xd8], 1
jmp 0x4092dd
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.004590d0
test eax, eax
jne 0x4092c4
cmp dword [ebp - 0x154], 0
je 0x4092b2
cmp dword [ebp - 0x154], 2
jne 0x4092c2
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0xd8], 1
jmp 0x4092dd
cmp dword [ebp - 0x154], 2
jne 0x4092dd
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.00411af0
test eax, eax
je 0x409366
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.0041da10
test eax, eax
je 0x409366
mov dword [ebp - 0x190], 1
jmp 0x409370
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 0x4093cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408d30
jmp 0x409934
lea edx, [ebp - 0x11c]
push edx
push 0
push 0x59c5d0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x89c
call fcn.0040d520
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x409438
push 0x59c5d4
call fcn.004e3120
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408d30
jmp 0x409934
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.005281a8
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
push ecx
lea ecx, [ebp - 0x150]
call fcn.00478500
test eax, eax
jne 0x4094b2
push 0x59c5e8
call fcn.004e3120
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408d30
jmp 0x409934
mov ecx, dword [ebp - 0x18c]
add ecx, 0x1f4
call fcn.0040d4e0
test eax, eax
jne 0x4094fb
push 0x59c5fc
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.005283fb
mov edx, dword [ebp - 0x18c]
add edx, 0x1f4
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00528437
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov eax, 1
test eax, eax
je 0x4096f2
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d7ca0
test eax, eax
jne 0x40954b
jmp 0x4096f2
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d7ce0
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xbc
call fcn.004c9860
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xbc
call fcn.0040e870
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x128]
jae 0x4096de
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.004d1960
add esp, 4
test eax, eax
jne 0x4095d1
jmp 0x409599
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 0x4096c9
mov esi, dword [ebp - 0x10]
sub esi, 1
mov ecx, dword [ebp - 0x160]
add ecx, 0xbc
call fcn.004c9860
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.00464090
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x4096af
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x17c]
je 0x4096ad
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.004c9860
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 0x4096c9
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.004cee70
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x409599
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
jmp 0x409516
cmp dword [ebp - 0x18], 0
jne 0x409701
cmp dword [ebp - 0x15c], 0
je 0x40976f
lea ecx, [ebp - 0x188]
call fcn.0040d4c0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x409726
push 0x59c600
lea ecx, [ebp - 0x188]
call fcn.005281a8
cmp dword [ebp - 0x15c], 0
je 0x40973f
push 0x59c648
lea ecx, [ebp - 0x188]
call fcn.005283fb
lea ecx, [ebp - 0x188]
call fcn.0040d520
push eax
call fcn.004e30b0
add esp, 4
push 0
mov ecx, dword [ebp - 0x18c]
call fcn.00460a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.0052801f
push 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040d4a0
push 0
push 0
push 0x36a
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x8b0]
call fcn.0040e1f0
push 1
push 0x59c684
mov ecx, dword [ebp - 0x18c]
call fcn.00460ba0
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.0040e820
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8b0]
add ecx, 0x818
call fcn.004956e0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x684
call fcn.0040e960
mov ecx, dword [ebp - 0x18c]
add ecx, 0x698
call fcn.0040e960
mov ecx, dword [ebp - 0x18c]
add ecx, 0x6ac
call fcn.0040e960
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x8b0]
cmp dword [eax + 0x664], 0
je 0x40985f
push 0
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8b0]
add ecx, 0x648
call fcn.0040e220
lea edx, [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x498
call fcn.00478290
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x76c], 0
cmp dword [ebp + 8], 0
je 0x4098f0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x610
call fcn.0040e9c0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x624
call fcn.0040e9c0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x638
call fcn.0040e9c0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x64c
call fcn.0040e9c0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x660
call fcn.0040e9c0
push 0
push 0
push 0
push 0
push 0
push 0x427320
call fcn.0052cd6f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8