Function at 0x40c330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f9c6
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x118]
mov dword [ebp - 0x134], 0
push 0
push eax
call fcn.005346b0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40c39d
xor al, al
jmp 0x40c8e5
lea ecx, [ebp - 0x118]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40c3a4
mov eax, dword [str.driversetchosts]
mov dword [ecx], eax
mov eax, dword [0x5bc738]
mov dword [ecx + 4], eax
mov eax, dword [0x5bc73c]
mov dword [ecx + 8], eax
mov eax, dword [0x5bc740]
mov dword [ecx + 0xc], eax
mov ax, word [0x5bc744]
mov word [ecx + 0x10], ax
mov al, byte [0x5bc746]
mov byte [ecx + 0x12], al
mov dword [ebp - 0x1f8], 0x5bcc84
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1e8]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x134], 1
push eax
lea ecx, [ebp - 0x188]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x18c], 0x58
movlpd qword [ebp - 0x1f0], xmm0
call fcn.00411d60
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1fc], eax
lea ecx, [ebp - 0x1e8]
call fcn.00411ae0
push ecx
push 1
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00411a20
test eax, eax
jne 0x40c4d6
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x1f8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040bf10
mov dword [ebp - 4], 4
mov esi, 0xf
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x130], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x19c], 0
jne 0x40c517
xor bl, bl
jmp 0x40c832
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1ec], 1
jne 0x40c5d3
nop
mov eax, dword [ebp + eax - 0x1c8]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x138], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 6
push eax
call fcn.00411ea0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x134], al
mov byte [ebp - 4], 5
test esi, esi
je 0x40c586
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40c586
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.004129d0
add esp, 0xc
lea ecx, [ebp - 0x130]
push edi
call fcn.004111a0
test eax, eax
je 0x40c6eb
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1ec], 1
je 0x40c530
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x1e8]
call fcn.00411930
test eax, eax
jne 0x40c60d
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x1f8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040bf10
mov dword [ebp - 0x2a8], 0x5bcc60
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2a4]
push 0
push eax
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x134], 5
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x244], 0x60
call fcn.00411d60
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x2a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2ac], eax
lea ecx, [ebp - 0x2a4]
call fcn.00411ae0
push ecx
push 0xa
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00411a20
test eax, eax
lea ecx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x2a8]
mov eax, dword [eax + 4]
je 0x40c732
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x40c746
lea ecx, [ebp - 0x1e8]
call fcn.00411930
test eax, eax
jne 0x40c725
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x1f8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040bf10
mov esi, dword [ebp - 0x11c]
mov bl, 1
jmp 0x40c832
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.0040bf10
cmp dword [ebp - 0x258], 0
jne 0x40c75b
xor bl, bl
jmp 0x40c7bc
lea eax, [ebp - 0x2a8]
push eax
call fcn.004120f0
add esp, 4
lea eax, [ebp - 0x2a8]
push edi
push eax
call fcn.00412210
push eax
call fcn.004120f0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
call fcn.00411930
test eax, eax
jne 0x40c7ba
mov eax, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2a8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0040bf10
mov bl, 1
mov eax, dword [ebp - 0x2a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2ac], eax
lea ecx, [ebp - 0x2a4]
call fcn.00410d60
mov eax, dword [ebp - 0x2a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2ac], eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005313cb
add esp, 4
mov byte [ebp - 4], 4
cmp esi, 0x10
jb 0x40c86a
mov ecx, dword [ebp - 0x130]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x40c860
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c901
push esi
push ecx
call fcn.00532001
add esp, 8
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1fc], eax
lea ecx, [ebp - 0x1e8]
call fcn.00410d60
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1f8]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x1fc], ecx
lea eax, [ebp - 0x188]
mov dword [ebp - 4], 0xc
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005313cb
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
call fcn.005375cf
int3