Function at 0x409ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475216
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x499694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00419530
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.00419530
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x48b8f0
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00410d07
add esp, 0xc
push 2
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x4e8]
push eax
call fcn.004059e0
lea ecx, [ebp - 0x4e8]
push str.ping__n_3_127.0.0.1___nul
push ecx
mov dword [ebp - 4], 0
call fcn.00409080
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00405480
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x409bba
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x409bba
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x409bda
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x409bd3
or eax, 4
push 0
call fcn.00405140
push 0x48b940
push ecx
lea edx, [ebp - 0x420]
push edx
push ecx
lea eax, [ebp - 0x4e8]
push 0x48b944
push eax
call fcn.00409080
add esp, 0xc
push eax
call fcn.00409080
add esp, 0xc
push eax
call fcn.00409080
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00405480
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x409c3e
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x409c3e
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x409c5e
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x409c57
or eax, 4
push 0
call fcn.00405140
push 0x48b940
push ecx
lea edx, [ebp - 0x218]
push edx
push ecx
lea eax, [ebp - 0x4e8]
push 0x48b944
push eax
call fcn.00409080
add esp, 0xc
push eax
call fcn.00409080
add esp, 0xc
push eax
call fcn.00409080
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00405480
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x409cc2
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x409cc2
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x409ce2
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x409cdb
or eax, 4
push 0
call fcn.00405140
lea eax, [ebp - 0x4e4]
call fcn.00406930
test eax, eax
jne 0x409d1b
mov edx, dword [ebp - 0x4e8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x4dc]
lea ecx, [ebp + ecx - 0x4e8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x409d14
or eax, 4
push 0
call fcn.00405140
xor eax, eax
mov word [ebp - 0x43c], ax
mov esi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409d42
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00401540
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.0040ac90
cmp dword [ebp - 0x428], 8
jb 0x409d8b
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0040f3f1
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00405ae0
lea ecx, [ebp - 0x488]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040d6b8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ecc7
mov esp, ebp
pop ebp
ret