Function at 0x4aaf80
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x470]
sub esp, 0x470
push 0xfffffffffffffffe
push 0x671690
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x46c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x478]
mov edi, dword [ebp + 0x47c]
mov eax, dword [ebp + 0x480]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x484]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 0x488]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0x48c]
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], ebx
cmp eax, ebx
je 0x4ab00c
mov dword [eax], ebx
cmp byte [0x743d80], bl
jne 0x4ab024
push 0x743d80
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp - 0x44]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004d90d0
add esp, 4
test eax, eax
je 0x4ab058
push 1
push ebx
push ebx
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
push ebx
push esi
call fcn.004dfea0
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4ab096
cmp esi, ebx
je 0x4ab069
cmp byte [esi], bl
je 0x4ab069
push ebx
push esi
call fcn.004dfec0
jmp 0x4ab091
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push edi
call fcn.004e0530
add esp, 0x1c
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4ab0b5
push ebx
push eax
call fcn.004dfea0
mov dword [ebp - 0x1c], eax
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4ab0c3
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4ab0ac
mov edx, dword [0x74aea4]
mov dword [eax], edx
lea eax, [ebp - 0x24]
push eax
call fcn.004dca10
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4ab3e3
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
test byte [edx + 0x30], 1
je 0x4ab11f
push esi
call fcn.004d5750
add esp, 4
push esi
test al, al
je 0x4ab0e3
call fcn.004e0250
jmp 0x4ab0e8
call fcn.004e76c0
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.004dca10
mov esi, dword [ebp - 0x20]
push esi
call fcn.004d90d0
add esp, 4
test eax, eax
je 0x4ab111
push ebx
push ebx
mov ecx, dword [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4ab3e3
push 0x12c
push ebx
lea edx, [ebp]
push edx
call fcn.005dfd60
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push esi
call fcn.004d5700
add esp, 0x18
mov eax, dword [ebp]
mov dword [ebp - 0x48], eax
cmp eax, ebx
jne 0x4ab185
push esi
call fcn.004d5750
add esp, 4
push esi
test al, al
je 0x4ab15c
call fcn.004e0250
jmp 0x4ab161
call fcn.004e76c0
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
call fcn.004dca10
mov esi, dword [ebp - 0x20]
push esi
call fcn.004d90d0
add esp, 4
test eax, eax
je 0x4ab111
push ebx
push ebx
mov edx, dword [ebp - 0x28]
push edx
jmp 0x4ab10a
xor edi, edi
mov dword [ebp - 0x2c], edi
cmp edi, dword [ebp - 0x48]
jge 0x4ab1bf
push 0x12c
push ebx
lea eax, [ebp + 0x12c]
push eax
call fcn.005dfd60
lea ecx, [ebp + 0x12c]
push ecx
push edi
push esi
call fcn.004d5700
add esp, 0x18
cmp eax, ebx
je 0x4ab1db
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x4ab1bf
mov dword [ecx], eax
push esi
call fcn.004d5750
add esp, 4
push esi
test al, al
je 0x4ab391
call fcn.004e0250
jmp 0x4ab396
mov byte [ebp + 0x35c], bl
push 0x103
push ebx
lea edx, [ebp + 0x35d]
push edx
call fcn.005dfd60
add esp, 0xc
mov dword [ebp - 0x40], ebx
mov byte [ebp + 0x460], bl
xor eax, eax
mov dword [ebp + 0x461], eax
mov dword [ebp + 0x465], eax
mov byte [ebp + 0x469], al
test byte [ebp + 0x234], 0x10
jne 0x4ab38b
cmp dword [ebp + 0x254], ebx
jle 0x4ab388
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp - 0x4c]
cmp edi, ebx
je 0x4ab2f6
cmp byte [edi], bl
je 0x4ab2f6
push 0x60cf1c
push 0x66da34
lea eax, [ebp + 0x130]
push eax
call fcn.004e9030
push 0x2f
lea ecx, [ebp + 0x130]
push ecx
call fcn.005e0a00
add esp, 0x14
mov esi, eax
cmp esi, ebx
je 0x4ab272
inc esi
jmp 0x4ab278
lea esi, [ebp + 0x130]
cmp byte [esi], 0x2e
je 0x4ab2f3
mov dword [ebp - 0x38], ebx
push 1
push ebx
push 0x2c
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp + 0x258]
push eax
push edi
call fcn.004e1380
add esp, 0x18
cmp dword [ebp - 0x38], 0xffffffff
je 0x4ab2bc
push esi
lea ecx, [ebp + 0x258]
push ecx
call fcn.004e1140
add esp, 8
test eax, eax
je 0x4ab280
mov dword [ebp - 0x30], 1
jmp 0x4ab2c1
cmp dword [ebp - 0x30], ebx
je 0x4ab2f3
push 0x2e
push esi
call fcn.005e0a00
add esp, 8
cmp eax, ebx
je 0x4ab2e9
inc eax
cmp byte [eax], bl
je 0x4ab2e9
push 4
push eax
lea ecx, [ebp + 0x460]
push ecx
call fcn.005e1e30
add esp, 0xc
jmp 0x4ab2f3
mov dword [ebp + 0x460], 0x534c52
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
je 0x4ab388
lea edx, [ebp + 0x35c]
push edx
push ebx
lea eax, [ebp + 0x460]
push eax
push 0x743d80
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp + 0x35c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push esi
call fcn.004dff00
add esp, 0xc
cmp eax, ebx
jne 0x4ab376
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x35c]
push ecx
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x4ab376
cmp dword [ebp - 0x40], ebx
je 0x4ab376
mov dword [ebp - 0x34], 1
push 1
push 0x2c
lea edx, [ebp + 0x35c]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.004e5820
mov edi, dword [ebp - 0x2c]
inc edi
jmp 0x4ab187
mov dword [ebp - 0x34], ebx
lea ecx, [ebp + 0x35c]
push ecx
call fcn.004e0670
add esp, 4
mov edi, dword [ebp - 0x2c]
inc edi
jmp 0x4ab187
call fcn.004e76c0
add esp, 4
lea edx, [ebp - 0x24]
push edx
call fcn.004dca10
mov esi, dword [ebp - 0x20]
push esi
call fcn.004d90d0
add esp, 4
test eax, eax
je 0x4ab3d9
push ebx
push ebx
mov eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4ab3d9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x46c]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x470
mov esp, ebp
pop ebp
ret