Function at 0x408eae
Capabilities:
Get common file path

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add eax, 0x445
push ebx
mov ebx, dword [esp + 0x24]
add edx, 0xfffffb74
mov dword [esp + 8], eax
add ebx, 0xfffff1ac
push ebp
lea eax, [ecx - 0x81]
mov dword [esp + 8], edx
mov dword [esp + 0x24], eax
mov ebp, edx
mov eax, dword [esp + 0x20]
lea edx, [ecx + 0x1a0]
push esi
add eax, 0xffffed2a
mov dword [esp + 0x18], edx
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
add edi, 0xfffffffc
lea eax, [ebx + 0x147d]
cmp edi, eax
je 0x4091ca
mov esi, dword [esp + 0x34]
mov eax, edi
xor eax, 0x1f75
cmp ebx, eax
je 0x409064
lea eax, [edi + 0xb8]
cmp ebp, eax
jge 0x40900e
mov eax, dword [0x679b2c]
add edx, 0xfb
mov ecx, dword [esi + 0xc]
add eax, 0xaaac8
add dword [esi + 0x90], eax
xor ebp, 0x1f3c
xor ecx, dword [0x679c08]
mov eax, dword [0x584ab4]
add ecx, 0xbdcf
mov dword [esp + 0x1c], edx
mov dword [eax + 0xec], ecx
mov eax, dword [0x584ab4]
mov ecx, dword [esi + 0x48]
sub ecx, dword [eax + 0xc]
xor ecx, 0x1b252b
imul ecx, dword [esi + 0x74]
cmp dword [esi + 0x134], 0x9d1
mov dword [esi + 0x74], ecx
ja 0x408fa8
mov eax, dword [esi + 0x128]
sub eax, dword [0x679bf4]
add eax, 0xb470f
add dword [esi + 0x14], eax
lea ecx, [edx - 8]
mov eax, edi
push ecx
push dword [0x584ab4]
xor eax, 0x357
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [ecx + 0x118]
xor ecx, 0x1aa8
push eax
push ecx
call fcn.00401525
add esp, 0x18
mov ebx, eax
cmp dword [0x679b0c], 0x135fe
jb 0x408ff5
mov ecx, dword [0x584ab4]
add dword [ecx + 0xb4], 0xffff2b0b
jmp 0x409006
mov eax, dword [esi + 0x12c]
xor eax, 0x1e0702
add dword [esi + 0x90], eax
add edi, 0x778
jmp 0x409060
mov ecx, dword [0x679bb0]
mov eax, ebp
imul eax, dword [esp + 0x2c]
mov edx, dword [esi + 0xac]
xor eax, 0x15b1
push eax
mov eax, ecx
sub eax, edx
or edx, 0x12e0
or eax, ebx
push eax
lea eax, [ecx - 0xe54]
push eax
mov eax, dword [esp + 0x38]
add eax, ebx
push edx
push eax
mov eax, dword [0x679bb4]
or eax, 0x1168
push eax
mov eax, dword [0x679b8c]
or eax, dword [esp + 0x38]
and eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
xor eax, 0x515
cmp edx, eax
jg 0x409191
mov eax, dword [esi + 0x114]
and eax, ebp
and eax, 0x1038
push eax
mov eax, dword [esp + 0x14]
add eax, 0x13d6
push eax
mov eax, ebx
or eax, dword [esp + 0x34]
sub eax, dword [esi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
imul eax, ebp, 0x12d6
and eax, dword [esp + 0x10]
cmp dword [0x679b00], eax
jbe 0x409191
mov eax, dword [esi + 0xc0]
or eax, edi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
and eax, 0xd4a
sub eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esi + 0xd4]
sub eax, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x70]
add eax, dword [esi + 0x3c]
push eax
mov eax, dword [esp + 0x28]
imul eax, ebp
push 0
push eax
mov eax, dword [0x679b64]
xor eax, edi
push eax
mov eax, dword [0x584ab4]
mov eax, dword [eax + 0xd4]
xor eax, ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esi + 0xc0]
sub ebx, edi
mov ecx, dword [esp + 0x20]
lea eax, [edx + ebp]
and ebp, 0xe1d
and eax, 0xed5
xor ebp, dword [esp + 0x20]
push eax
mov eax, ecx
or ecx, edi
sub eax, dword [0x679b44]
and eax, dword [esi + 0xcc]
push eax
push ecx
mov ecx, dword [0x584ab4]
push ebx
mov eax, dword [ecx + 0xf4]
or eax, dword [esp + 0x20]
push eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [esi + 0x11c]
add eax, edx
and eax, dword [esi + 0xb0]
add ecx, 0xffffef8b
push eax
mov eax, dword [esi + 0x54]
push ebp
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [esp + 0x1c]
mov eax, edi
or eax, 0x1170
xor eax, dword [0x679c1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x409195
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, 0xffffff59
cmp dword [esp + 0x20], eax
jge 0x4091cc
add dword [0x679c18], 0x8b832
mov eax, dword [esi + 0xd8]
mov edx, dword [0x584ab4]
add eax, 0x1b6a0f
add eax, dword [esi + 0x11c]
xor dword [edx + 0x70], eax
jmp 0x4091cc
mov edi, edx
lea eax, [edi - 0x47e]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret