Function at 0x4082e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446057
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x45a400]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
mov eax, dword [0x45a400]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
mov ecx, fcn.00404675
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
call fcn.00416f60
push 0xf
pop edi
push 3
xor ebx, ebx
push 0x44bdc4
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0040366e
lea edx, [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x200], ebx
call fcn.00417040
push ebx
push 1
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00403a1b
lea eax, [esp + 0x54]
mov byte [esi + 0x56], bl
call fcn.00418c40
push 0xffffffffffffffff
push ebx
push dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x20c], 1
call fcn.00403978
push 0x103
lea eax, [esp + 0xe9]
push ebx
push eax
mov byte [esp + 0xf0], bl
call fcn.0042a4a0
add esp, 0xc
lea eax, [esp + 0xe4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x408414
push 0x2f
push str.Cannot_detect_the_path_to_the_temporary_folder.
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0040366e
lea eax, [esp + 0x1c]
lea esi, [esp + 0xa4]
mov byte [esp + 0x200], 2
call fcn.00416a20
push 0x455268
mov eax, esi
push eax
call fcn.0042a64b
lea eax, [esp + 0xe4]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40842a
sub eax, edi
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x40]
call fcn.0040366e
mov byte [esp + 0x200], 3
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x40847a
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x408464
lea eax, [esp + 0x38]
cmp byte [eax + ecx - 1], 0x5c
je 0x40847a
push 0x44b3dc
lea eax, [esp + 0x3c]
push eax
call fcn.00402eb1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x7c]
call fcn.00403978
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x54]
cmp eax, ecx
jae 0x4084cb
mov edx, dword [esi + 8]
cmp edx, eax
ja 0x4084cb
sub eax, edx
push 0x50
cdq
pop edi
idiv edi
mov edi, eax
cmp ecx, dword [esi + 0x10]
jne 0x4084b4
lea ecx, [esi + 8]
call fcn.00419d60
mov eax, dword [esi + 0xc]
imul edi, edi, 0x50
add edi, dword [esi + 8]
mov byte [esp + 0x200], 4
cmp eax, ebx
je 0x4084f1
jmp 0x4084eb
cmp ecx, dword [esi + 0x10]
jne 0x4084d8
lea ecx, [esi + 8]
call fcn.00419d60
mov eax, dword [esi + 0xc]
mov byte [esp + 0x200], 5
cmp eax, ebx
je 0x4084f1
lea edi, [esp + 0x54]
push eax
call fcn.0041a210
mov eax, dword [esp + 0x18]
add dword [esi + 0xc], 0x50
call fcn.00416f30
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.00403a1b
push ebx
push 1
lea ecx, [esp + 0x78]
call fcn.00403a1b
push ebx
push 1
lea ecx, [esp + 0x5c]
call fcn.00403a1b
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.00428263
mov esp, ebp
pop ebp
ret