Function at 0x418ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d598
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x431520]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x431520]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0x7ec
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.00416570
push 8
push str.Pressbre
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00402c50
mov dword [esp + 0x50], ebx
movzx ecx, word [str.DOxI]
mov edi, dword [0x432450]
mov edx, edi
sub edx, ecx
lea eax, [ebx + 6]
sub edx, 0x4f
mov dword [esp + 0x18], ebx
jmp 0x418b60
add dword [eax*4 + 0x432454], edi
sub eax, 2
cmp eax, 3
jg 0x418b60
mov dword [0x43bb20], eax
call fcn.00416a90
mov esi, eax
mov eax, dword [esp + 0x24]
lea edx, [esi*8]
sub edx, edi
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x18], ebx
mov word [str.DOxI], dx
jae 0x418b9e
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x432444]
push ecx
mov ecx, dword [0x432440]
push eax
push ecx
call fcn.004048a0
push eax
call fcn.00401e20
add esp, 4
push eax
call fcn.00404b20
mov ecx, dword [0x432440]
add esp, 8
call fcn.00416570
movzx ecx, word [str.DOxI]
mov edi, dword [0x432450]
sub ecx, edi
lea edx, [ecx + 0x13]
add esi, edx
adc dword [esp + 0x18], ebx
xor edx, edx
add ecx, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x432454]
mov dword [0x432444], ebx
mov dword [0x43bb20], edx
cmp edi, ecx
je 0x418c0e
add edx, 2
cmp edx, 9
jl 0x418c02
mov dword [0x43bb20], edx
mov edx, eax
call fcn.00416a90
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [0x432440], eax
movzx eax, word [str.DOxI]
sub eax, edi
add eax, 0x13
push ecx
add esi, eax
adc dword [esp + 0x1c], ebx
push edx
mov dword [0x432444], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movzx edi, word [str.DOxI]
mov ecx, dword [0x432450]
mov edx, dword [0x432454]
mov dword [0x432440], eax
xor eax, eax
sub edi, ecx
mov dword [0x432444], ebx
mov dword [0x43bb20], eax
add edi, 4
cmp ecx, edx
je 0x418c7e
add eax, 2
cmp eax, 9
jl 0x418c72
mov edx, dword [esp + 0x20]
mov dword [0x43bb20], eax
mov eax, edx
lea ebx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418c90
sub eax, ebx
push eax
mov eax, edx
lea ecx, [esp + 0x28]
call fcn.00402b40
mov ecx, dword [0x432450]
cmp dword [0x432464], ecx
jae 0x418cda
movzx eax, word [str.DOxI]
lea ecx, [eax + ecx - 0xaa2]
mov dword [0x43246c], eax
mov eax, dword [esp + 0x18]
shld eax, esi, 1
add esi, esi
xor edx, edx
add esi, ecx
adc edx, eax
mov dword [esp + 0x18], edx
mov ecx, edi
call fcn.00416570
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, esi
sub ecx, eax
push 0x43b4f0
sub ecx, 0x29
push 0x7ec
mov dword [0x432450], eax
mov word [str.DOxI], cx
call ebx
mov dword [0x432440], eax
sub eax, esi
sub eax, 0x4f
mov word [str.DOxI], ax
mov eax, 0x43b4f0
mov dword [0x432444], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418d28
sub eax, esi
push eax
mov eax, 0x43b4f0
lea ecx, [esp + 0x28]
call fcn.00402b40
mov ecx, dword [0x432450]
mov edx, dword [0x432454]
xor eax, eax
mov dword [0x43bb20], eax
cmp ecx, edx
je 0x418d5f
add eax, 2
cmp eax, 9
jl 0x418d53
mov dword [0x43bb20], eax
call fcn.00418240
movzx edx, word [str.DOxI]
mov esi, edi
sub esi, edx
sub esi, 0x4f
mov eax, 6
xor ecx, ecx
mov edi, edi
add dword [eax*4 + 0x432454], edi
sub eax, 2
cmp eax, 3
jg 0x418d80
mov dword [0x43bb20], eax
mov eax, esi
sub eax, dword [0x432450]
xor edx, edx
sub eax, 0x29
mov word [str.DOxI], ax
mov eax, 0xffffffdf
sub eax, edi
mov edi, 0xffffffff
sbb edi, edx
sub eax, esi
sbb edi, ecx
add dword [0x432440], eax
adc dword [0x432444], edi
call fcn.00418240
mov ax, word [str.DOxI]
add ax, word [esp + 0x34]
mov edx, dword [0x432440]
movzx ecx, ax
mov word [str.DOxI], ax
mov eax, dword [0x432450]
sub edx, ecx
sub edx, esi
lea edx, [edx + eax - 0x3c]
movzx eax, word [0x432448]
add eax, eax
add eax, eax
add eax, eax
sub eax, ecx
mov dword [esp + 0x1c], edx
cdq
push 0x43b4f0
push 0x7ec
mov esi, eax
mov edi, edx
call ebx
mov cx, word [str.DOxI]
add cx, word [esp + 0x34]
mov dword [0x432440], eax
mov eax, dword [0x432450]
mov word [str.DOxI], cx
movzx ecx, cx
lea edx, [ecx + eax - 0xaa2]
xor eax, eax
mov ebx, 0xffffffdf
sub ebx, edx
mov edx, 0xffffffff
sbb edx, eax
shld edi, esi, 1
add esi, esi
sub ebx, esi
movzx esi, word [0x432448]
sbb edx, edi
sub ebx, dword [esp + 0x1c]
mov dword [0x432444], 0
sbb edx, eax
add dword [0x432440], ebx
adc dword [0x432444], edx
sub esi, ecx
cmp dword [esp + 0x38], 0x10
jb 0x418e8f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00407b9e
add esp, 4
lea eax, [esi + 4]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004073c9
mov esp, ebp
pop ebp
ret 0x10