Function at 0x40aaa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4207a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x427550]
xor eax, esp
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xa0], eax
mov eax, dword [0x4283f4]
push edi
mov ecx, 0x4283f4
mov dword [esp + 0x24], ebp
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x4283f4]
xor ebx, ebx
mov ecx, 0x4283f4
mov dword [esp + 0xb0], ebx
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [0x4283f4]
mov ecx, 0x4283f4
mov byte [esp + 0xb0], 1
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [0x4283f4]
mov ecx, 0x4283f4
mov byte [esp + 0xb0], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 3
call fcn.0040bc10
mov eax, dword [0x4283f4]
mov ecx, 0x4283f4
mov byte [esp + 0xb0], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
add ebp, 0x238
push ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 5
call fcn.00407090
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], ebx
jne 0x40ac13
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 3
call fcn.0040ba40
lea eax, [ebp - 0x10]
mov byte [esp + 0xb0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0xb0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
jmp 0x40aea2
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, 0x208
or eax, ecx
jge 0x40ac3f
push 0x208
lea ecx, [esp + 0x1c]
call fcn.00406420
mov edi, dword [esp + 0x18]
push 0x208
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, ebx
jne 0x40ac54
xor eax, eax
jmp 0x40ac6f
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ac60
sub eax, edx
js 0x40af1b
cmp eax, dword [edi - 8]
jg 0x40af1b
mov dword [edi - 0xc], eax
mov byte [eax + edi], bl
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x40aca6
push 0x104
lea ecx, [esp + 0x18]
call fcn.00406420
mov esi, dword [esp + 0x14]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp esi, ebx
jne 0x40acba
xor eax, eax
jmp 0x40accf
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40acc0
sub eax, edx
js 0x40af1b
cmp eax, dword [esi - 8]
jg 0x40af1b
push 2
mov dword [esi - 0xc], eax
push 0x421cdc
lea ecx, [esp + 0x1c]
mov byte [eax + esi], bl
call fcn.00406e60
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00407090
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xa
push ebx
push ebx
push ebx
push ebp
lea ecx, [esp + 0x3c]
call fcn.0040d040
cmp eax, 1
je 0x40ad27
push 0xc8
call edi
dec esi
cmp esi, ebx
jg 0x40ad07
jmp 0x40ad58
lea ecx, [esp + 0x2c]
call fcn.0040b8d0
cmp eax, ebx
jne 0x40ad38
xor ecx, ecx
jmp 0x40ad49
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40ad40
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00406dc0
mov ebp, dword [esp + 0x1c]
push 1
push 0x4215dc
lea ecx, [esp + 0x18]
call fcn.00406e60
push 0x2f
push ebp
call fcn.004136d1
add esp, 8
cmp eax, ebx
je 0x40ad7d
sub eax, ebp
mov esi, eax
jns 0x40ad8f
push 8
push str.rfwd.exe
lea ecx, [esp + 0x18]
call fcn.00406e60
jmp 0x40ae01
cmp esi, dword [ebp - 0xc]
jge 0x40adac
lea eax, [esi + ebp]
push 0x3f
push eax
call fcn.0041366a
add esp, 8
cmp eax, ebx
je 0x40adac
sub eax, ebp
cmp eax, ebx
jge 0x40adaf
mov eax, dword [ebp - 0xc]
sub eax, esi
dec eax
push eax
inc esi
push esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call fcn.004067a0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], 6
call fcn.00406e60
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ae01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
push ebx
push ebx
push esi
push ebp
lea ecx, [esp + 0x3c]
call fcn.0040d040
test eax, eax
je 0x40aef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 3
call fcn.0040ba40
lea eax, [ebp - 0x10]
mov byte [esp + 0xb0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0xb0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40b098
mov edi, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, edi
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x40af16
push edi
lea ecx, [esp + 0x14]
call fcn.00406420
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jge 0x40af25
push 0x80070057
call fcn.00405860
mov dword [esi - 0xc], edi
mov byte [esi + 0x104], bl
mov edi, 0xf
mov eax, esi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40af50
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x90]
call fcn.004033b0
mov eax, esi
mov byte [esp + 0xb0], 7
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40af74
sub eax, edx
js 0x40af1b
cmp eax, dword [esi - 8]
jg 0x40af1b
mov ecx, dword [esp + 0x24]
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
lea eax, [esp + 0x88]
push eax
call fcn.0040a6e0
cmp dword [esp + 0xa0], 0x10
jb 0x40afb5
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00412c1d
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov byte [esp + 0xb0], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 3
call fcn.0040ba40
lea eax, [ebp - 0x10]
mov byte [esp + 0xb0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0xb0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b06a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xb0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x98]
pop ebx
xor ecx, esp
call fcn.00413041
add esp, 0xa4
ret