Function at 0xa0c00e
Capabilities:
Get common file path

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [str.SING_error_r_n]
push edi
mov dword [esi + 0x10], 0xff00ff
mov dword [esi + 8], 0x1f4
mov dword [esi + 0xc], 0x190
mov eax, dword [esi + 4]
push 0xb8
push eax
lea ebp, [esi + 0x18]
call ebx
mov dword [ebp], eax
mov ecx, dword [esi + 4]
push 0xb7
push ecx
call ebx
mov dword [esi + 0x30], eax
mov edx, dword [esi + 4]
push 0xb6
push edx
call ebx
mov ecx, dword [ebp]
mov dword [esi + 0x48], eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x24]
lea edi, [esi + 0x1f8]
mov dword [esi + 0x1f4], edx
push ebp
mov eax, dword [edi + 8]
push 1
push eax
mov ecx, edi
call fcn.00a0c65e
mov ecx, dword [edi + 8]
lea eax, [esi + 0x30]
push eax
push 1
push ecx
mov ecx, edi
call fcn.00a0c65e
mov edx, dword [edi + 8]
lea eax, [esi + 0x48]
push eax
push 1
push edx
mov ecx, edi
call fcn.00a0c65e
mov eax, dword [esi + 4]
push 0xb4
push eax
lea ebp, [esi + 0xf0]
call ebx
mov ecx, dword [esi + 4]
push 0xb5
push ecx
mov dword [ebp], eax
call ebx
mov edx, dword [esi + 4]
push 0xb3
push edx
mov dword [esi + 0x108], eax
call ebx
mov dword [esi + 0x120], eax
mov eax, dword [edi + 8]
push ebp
push 1
push eax
mov ecx, edi
call fcn.00a0c65e
mov ecx, dword [edi + 8]
lea eax, [esi + 0x108]
push eax
push 1
push ecx
mov ecx, edi
call fcn.00a0c65e
mov edx, dword [edi + 8]
lea eax, [esi + 0x120]
push eax
push 1
push edx
mov ecx, edi
call fcn.00a0c65e
mov eax, dword [esi + 4]
push 0xe2
push eax
lea ebp, [esi + 0xa8]
call ebx
mov ecx, dword [esi + 4]
push 0xe1
push ecx
mov dword [ebp], eax
call ebx
mov edx, dword [esi + 4]
push pe_nt_image_headers32
push edx
mov dword [esi + 0xc0], eax
call ebx
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 4]
push 0x8d
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x8c
push ecx
mov dword [esi + 0x60], eax
call ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x14], 0xffffff
mov edx, dword [edi + 8]
push ebp
push 1
push edx
mov ecx, edi
call fcn.00a0c65e
lea eax, [esi + 0xc0]
mov ecx, edi
push eax
mov eax, dword [edi + 8]
push 1
push eax
call fcn.00a0c65e
mov ecx, dword [edi + 8]
lea eax, [esi + 0xd8]
push eax
push 1
push ecx
mov ecx, edi
call fcn.00a0c65e
mov edx, dword [edi + 8]
lea eax, [esi + 0x60]
push eax
push 1
push edx
mov ecx, edi
call fcn.00a0c65e
lea eax, [esi + 0x90]
mov ecx, edi
push eax
mov eax, dword [edi + 8]
push 1
push eax
call fcn.00a0c65e
mov ecx, dword [esi + 4]
push 0xde
push ecx
call ebx
lea ebp, [esi + 0x168]
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x174], 5
mov dword [ebp], eax
mov dword [esi + 0x178], 6
push 0x18
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x170], eax
mov eax, 0x55555556
imul ecx
mov eax, dword [esi + 4]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push 0xdf
mov dword [esi + 0x16c], edx
lea edx, [esi + 0x150]
push eax
mov dword [esp + 0x18], edx
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x18
mov dword [ecx], eax
mov eax, dword [ebp]
push eax
mov dword [esi + 0x15c], 5
mov dword [esi + 0x160], 0x17
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x24]
mov eax, 0x55555556
mov dword [esi + 0x158], ecx
mov ecx, dword [esp + 0x20]
imul ecx
mov ecx, dword [esi + 4]
mov eax, edx
shr eax, 0x1f
add edx, eax
push 0x8a
push ecx
mov dword [esi + 0x154], edx
call ebx
lea edx, [esp + 0x1c]
lea ebx, [esi + 0x138]
push edx
push 0x18
push eax
mov dword [ebx], eax
mov dword [esi + 0x144], 5
mov dword [esi + 0x148], 0x29
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x140], eax
mov eax, 0x55555556
imul ecx
mov ecx, edx
push 0x80
shr ecx, 0x1f
add edx, ecx
mov dword [esi + 0x13c], edx
mov edx, dword [esi + 4]
push edx
call dword [0x406308]
mov dword [esi + 0x194], eax
xor eax, eax
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], 5
mov dword [esi + 0x1a4], 0x16
mov dword [esi + 0x1b0], eax
mov eax, dword [edi + 8]
push ebp
push 1
push eax
mov ecx, edi
call fcn.00a0c65e
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
mov esi, eax
sar ecx, 2
cmp ecx, 1
jae 0xa0c3ee
mov ecx, edi
call fcn.00a0c62e
cmp eax, 1
jbe 0xa0c356
mov ecx, edi
call fcn.00a0c62e
mov ebp, eax
jmp 0xa0c35b
mov ebp, 1
mov ecx, edi
call fcn.00a0c62e
add eax, ebp
mov dword [esp + 0x18], eax
jns 0xa0c36c
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00a0cac6
add esp, 4
mov ebp, eax
mov eax, dword [edi + 4]
mov ecx, edi
push ebp
push esi
push eax
call fcn.00a0c86e
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
push 1
push eax
mov ecx, edi
call fcn.00a0c89e
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 8]
add edx, 4
mov ecx, edi
push edx
push eax
push esi
call fcn.00a0c86e
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.00a0c64e
mov eax, dword [edi + 4]
push eax
call fcn.00a0ca00
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, edi
mov dword [edi + 0xc], edx
call fcn.00a0c62e
lea eax, [ebp + eax*4 + 4]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
jmp 0xa0c47c
mov ecx, eax
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0xa0c43b
lea edx, [esi + 4]
mov ecx, edi
push edx
push eax
push esi
call fcn.00a0c86e
mov eax, dword [edi + 8]
mov ebp, dword [esp + 0x10]
mov ecx, eax
mov edx, 1
sub ecx, esi
push ebp
sar ecx, 2
sub edx, ecx
mov ecx, edi
push edx
push eax
call fcn.00a0c89e
mov eax, dword [edi + 8]
cmp esi, eax
je 0xa0c478
mov ecx, dword [ebp]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0xa0c42d
jmp 0xa0c478
push eax
push eax
add eax, 0xfffffffc
mov ecx, edi
push eax
call fcn.00a0c86e
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0xa0c461
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0xa0c452
lea eax, [esi + 4]
cmp esi, eax
je 0xa0c478
mov ecx, dword [esp + 0x10]
add esi, 4
cmp esi, eax
mov edx, dword [ecx]
mov dword [esi - 4], edx
jne 0xa0c468
add dword [edi + 8], 4
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
mov esi, eax
sar ecx, 2
cmp ecx, 1
jae 0xa0c545
mov ecx, dword [edi + 4]
test ecx, ecx
je 0xa0c4ae
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0xa0c4ae
mov ecx, edi
call fcn.00a0c62e
mov ebp, eax
jmp 0xa0c4b3
mov ebp, 1
mov ecx, edi
call fcn.00a0c62e
add eax, ebp
mov dword [esp + 0x14], eax
jns 0xa0c4c4
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00a0cac6
add esp, 4
mov ebp, eax
mov eax, dword [edi + 4]
mov ecx, edi
push ebp
push esi
push eax
call fcn.00a0c86e
push ebx
push 1
push eax
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.00a0c89e
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 8]
add ecx, 4
push ecx
push edx
push esi
mov ecx, edi
call fcn.00a0c86e
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.00a0c64e
mov edx, dword [edi + 4]
push edx
call fcn.00a0ca00
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [edi + 0xc], ecx
mov ecx, edi
call fcn.00a0c62e
lea edx, [ebp + eax*4 + 4]
mov dword [edi + 4], ebp
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, eax
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0xa0c59c
lea edx, [esi + 4]
mov ecx, edi
push edx
push eax
push esi
call fcn.00a0c86e
mov eax, dword [edi + 8]
mov edx, 1
mov ecx, eax
push ebx
sub ecx, esi
sar ecx, 2
sub edx, ecx
mov ecx, edi
push edx
push eax
call fcn.00a0c89e
mov eax, dword [edi + 8]
cmp esi, eax
je 0xa0c5d4
mov ecx, dword [ebx]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0xa0c580
mov eax, dword [edi + 8]
add eax, 4
mov dword [edi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push eax
push eax
add eax, 0xfffffffc
mov ecx, edi
push eax
call fcn.00a0c86e
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0xa0c5c2
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0xa0c5b3
lea eax, [esi + 4]
cmp esi, eax
je 0xa0c5d4
mov ecx, dword [ebx]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0xa0c5c9
mov eax, dword [edi + 8]
add eax, 4
mov dword [edi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret