Function at 0x408bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5348f0
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.0040a2d0
test eax, eax
je 0x408bff
jmp 0x4093c2
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x670], 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040a2f0
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 2
jne 0x408c41
push 1
mov ecx, dword [ebp - 0x18c]
call fcn.0040899d
jmp 0x4093c2
cmp dword [ebp - 0x180], 0
je 0x408c4f
jmp 0x4093c2
cmp dword [0x591d88], 0
jle 0x408c7e
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x1c], 0
je 0x408c7e
mov edx, dword [ebp - 0x18c]
cmp dword [edx + 0x808], 0
jne 0x408c7e
mov ecx, dword [ebp - 0x18c]
call fcn.00457630
mov ecx, dword [ebp - 0x18c]
call fcn.00467310
mov ecx, dword [ebp - 0x18c]
call fcn.00467620
mov ecx, dword [ebp - 0x18c]
call fcn.004226b0
lea ecx, [ebp - 0x178]
call fcn.00470b30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00470b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00470b30
mov byte [ebp - 4], 2
push 0x59175c
lea ecx, [ebp - 0x13c]
call fcn.00470ea0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x154], ecx
cmp dword [ebp - 0x154], 0x2710
je 0x408d09
cmp dword [ebp - 0x154], 0x2af8
jne 0x408d1b
mov edx, dword [ebp - 0x18c]
mov dword [edx + 0xd8], 1
jmp 0x408d6d
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.00453440
test eax, eax
jne 0x408d54
cmp dword [ebp - 0x154], 0
je 0x408d42
cmp dword [ebp - 0x154], 2
jne 0x408d52
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0xd8], 1
jmp 0x408d6d
cmp dword [ebp - 0x154], 2
jne 0x408d6d
mov ecx, dword [ebp - 0x18c]
mov dword [ecx + 0xd8], 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.0040d4b0
test eax, eax
je 0x408df6
push 0xffffffffffffffff
push 0
push 0
push 0xe
push 0x57e1e8
push 0x800
push 0x4c2
push 0x57dd24
push 0
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x18c]
call fcn.00419120
test eax, eax
je 0x408df6
mov dword [ebp - 0x190], 1
jmp 0x408e00
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 0x408e5c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408810
jmp 0x4093c2
lea edx, [ebp - 0x11c]
push edx
push 0
push 0x57f298
mov ecx, dword [ebp - 0x18c]
add ecx, 0x898
call fcn.0040a2c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x408ec8
push 0x57f29c
call fcn.004d9bb0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408810
jmp 0x4093c2
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00514473
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
push ecx
lea ecx, [ebp - 0x150]
call fcn.00471240
test eax, eax
jne 0x408f42
push 0x57f2b0
call fcn.004d9bb0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408810
jmp 0x4093c2
mov ecx, dword [ebp - 0x18c]
add ecx, 0x1f4
call fcn.0040a280
test eax, eax
jne 0x408f8b
push 0x57f2c4
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.005146c6
mov edx, dword [ebp - 0x18c]
add edx, 0x1f4
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x494
call fcn.00514702
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov eax, 1
test eax, eax
je 0x409182
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d03c0
test eax, eax
jne 0x408fdb
jmp 0x409182
mov eax, dword [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2b0
call fcn.004d0400
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.0040a3b0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.0040a3e0
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x128]
jae 0x40916e
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.004ca130
add esp, 4
test eax, eax
jne 0x409061
jmp 0x409029
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 0x409159
mov esi, dword [ebp - 0x10]
sub esi, 1
mov ecx, dword [ebp - 0x160]
add ecx, 0xb8
call fcn.0040a3b0
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.0045e160
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x40913f
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x17c]
je 0x40913d
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.0040a3b0
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 0x409159
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.004c7bc0
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x409029
mov edx, dword [ebp - 0x158]
add edx, 1
mov dword [ebp - 0x158], edx
jmp 0x408fa6
cmp dword [ebp - 0x18], 0
jne 0x409191
cmp dword [ebp - 0x15c], 0
je 0x4091ff
lea ecx, [ebp - 0x188]
call fcn.0040a260
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x4091b6
push 0x57f2c8
lea ecx, [ebp - 0x188]
call fcn.00514473
cmp dword [ebp - 0x15c], 0
je 0x4091cf
push 0x57f310
lea ecx, [ebp - 0x188]
call fcn.005146c6
lea ecx, [ebp - 0x188]
call fcn.0040a2c0
push eax
call fcn.004d9b40
add esp, 4
push 0
mov ecx, dword [ebp - 0x18c]
call fcn.0045acd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.00514336
push 1
mov ecx, dword [ebp - 0x18c]
add ecx, 0xc0
call fcn.0040a240
push 0
push 0
push 0x36a
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x8ac]
call fcn.0040a310
push 0x57f34c
mov ecx, dword [ebp - 0x18c]
call fcn.0045adf0
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.0040a360
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8ac]
add ecx, 0x818
call fcn.0048e360
mov ecx, dword [ebp - 0x18c]
add ecx, 0x680
call fcn.0040a440
mov ecx, dword [ebp - 0x18c]
add ecx, 0x694
call fcn.0040a440
mov ecx, dword [ebp - 0x18c]
add ecx, 0x6a8
call fcn.0040a440
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x8ac]
cmp dword [eax + 0x664], 0
je 0x4092ed
push 0
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + 0x8ac]
add ecx, 0x648
call fcn.0040a340
lea edx, [ebp - 0x178]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x498
call fcn.00470fd0
mov eax, dword [ebp - 0x18c]
mov dword [eax + 0x768], 0
cmp dword [ebp + 8], 0
je 0x40937e
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x60c
call fcn.0040a4a0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x620
call fcn.0040a4a0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18c]
add ecx, 0x634
call fcn.0040a4a0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x648
call fcn.0040a4a0
push 0
mov ecx, dword [ebp - 0x18c]
add ecx, 0x65c
call fcn.0040a4a0
push 0
push 0
push 0
push 0
push 0
push 0x422780
call fcn.00518a80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00408810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00408810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00408810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8