Function at 0x412950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x538dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
mov eax, dword [0x58bcc0]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x28], edi
call fcn.00414579
lea ecx, [esp + 0x44]
mov dword [esp + 0x510], 0
call fcn.00414b00
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 1
call fcn.00414b00
lea ecx, [esp + 0x6c]
mov byte [esp + 0x510], 2
call fcn.00414b00
mov byte [esp + 0x510], 3
call fcn.004134f2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4129fa
push 0x80004005
call fcn.004026c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x510], 4
call fcn.004134f2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412a2c
push 0x80004005
call fcn.004026c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x510], 5
call fcn.004134f2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412a5e
push 0x80004005
call fcn.004026c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x510], 6
mov ecx, dword [esp + 0x4c]
push str._________Added_by_L2Updater_________
push ecx
lea ecx, [esp + 0x4c]
call fcn.00414f31
push 0x104
lea edx, [esp + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x413223
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x24]
push 0x569bf4
push ecx
call fcn.00405bd0
add esp, 0xc
push str.system32driversetchosts.msn
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00403900
mov esi, dword [eax]
add esp, 0xc
push 0x250
lea ecx, [esp + 0xa8]
push 0
push ecx
call fcn.00516800
add esp, 0xc
lea edx, [esp + 0xa4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x412b06
xor bl, bl
jmp 0x412b0f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
test bl, bl
je 0x412b54
push str.system32driversetchosts.msn
push ecx
push edx
call fcn.00403900
add esp, 0xc
mov byte [esp + 0x510], 7
jmp 0x412b6b
push str.system32driversetchosts
push ecx
push edx
call fcn.00403900
add esp, 0xc
mov byte [esp + 0x510], 8
push eax
lea ecx, [esp + 0x28]
call fcn.00401e90
mov byte [esp + 0x510], 6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push 0
push 0x3002
push ecx
lea ecx, [esp + 0x98]
call fcn.00414451
test eax, eax
je 0x413223
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x90]
call fcn.004149b7
test eax, eax
je 0x412ca3
lea ecx, [esp + 0x14]
call fcn.00403560
mov ecx, eax
call fcn.004035e0
mov eax, dword [esp + 0x14]
mov ecx, str._________Added_by_L2Updater_________
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412c16
test dx, dx
je 0x412c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x412bf0
xor eax, eax
jmp 0x412c1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x412c77
mov eax, dword [esp + 0x14]
mov ecx, str.________________End_________________
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412c56
test dx, dx
je 0x412c52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412c56
add eax, 4
add ecx, 4
test dx, dx
jne 0x412c30
xor eax, eax
jmp 0x412c5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x412c77
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
call fcn.004149b7
jmp 0x412c24
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.00414edf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
call fcn.004149b7
test eax, eax
jne 0x412bd6
mov ebx, dword [esp + 0x60]
xor esi, esi
test ebx, ebx
jle 0x412d19
lea ecx, [ecx]
test esi, esi
js 0x412d87
cmp esi, ebx
jge 0x412d87
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + esi*4]
mov ecx, str.________________End_________________
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412cf6
test dx, dx
je 0x412cf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412cf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x412cd0
xor eax, eax
jmp 0x412cfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x412d14
push 1
push esi
lea ecx, [esp + 0x60]
call fcn.00414d13
mov ebx, dword [esp + 0x60]
inc esi
cmp esi, ebx
jl 0x412cb0
mov eax, dword [edi + 8]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4130b5
lea esp, [esp]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
call fcn.00414bdf
mov eax, dword [esp + 0x10]
test eax, eax
js 0x412d87
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 8]
jge 0x412d87
mov edx, dword [ecx + 4]
mov esi, dword [edx + eax*4]
lea eax, [edx + eax*4]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x88], esp
mov ebx, esp
call edx
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x412d8c
cmp eax, dword [esi - 0x10]
jne 0x412d8c
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x412dc4
call fcn.00414256
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x413309
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00513307
add esp, 0x10
lea ecx, [esp + 0x30]
add edi, 0x10
push ecx
mov dword [ebx], edi
call fcn.00404f10
lea edx, [esp + 0x18]
mov byte [esp + 0x510], 9
mov dword [esp + 0x84], edx
call fcn.004134f2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4129f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, 0x566cdc
mov byte [esp + 0x510], 0xa
test ecx, 0xffff0000
jne 0x412e3b
mov edx, ecx
movzx esi, dx
push esi
call fcn.004143a3
test eax, eax
je 0x412e4b
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00402040
jmp 0x412e4b
push 1
push 0x566cdc
lea ecx, [esp + 0x20]
call fcn.004021f0
mov byte [esp + 0x510], 0xb
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x412eb0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x412e9e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412e9e
push eax
call fcn.00401e20
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412e95
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x38], ebx
jmp 0x412eac
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.004021f0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x510], 9
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ed4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
test eax, eax
je 0x412f01
cmp dword [ecx - 0xc], 0
jl 0x412f01
push eax
push ecx
call fcn.0051405c
mov ecx, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x412f01
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x412f08
cmp dword [esp + 0x40], 0
jne 0x412f36
mov eax, dword [esp + 0x38]
test eax, eax
je 0x412f2f
cmp dword [ecx - 0xc], 0
jl 0x412f2f
push eax
push ecx
call fcn.0051405c
add esp, 8
test eax, eax
je 0x412f2f
sub eax, dword [esp + 0x34]
sar eax, 1
cmp eax, 0xffffffff
jne 0x412f36
cmp dword [esp + 0x40], 0
je 0x412f75
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x30]
call fcn.00405150
mov byte [esp + 0x510], 0xc
mov edx, dword [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x74]
call fcn.00414edf
mov byte [esp + 0x510], 9
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
jmp 0x412ebb
cmp dword [esp + 0x74], 0
jle 0x412d87
mov ecx, dword [esp + 0x70]
push 0x569cc4
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403900
add esp, 0xc
mov byte [esp + 0x510], 0xd
cmp dword [esp + 0x74], 1
jle 0x412d87
mov ecx, dword [esp + 0x70]
add ecx, 4
push ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00405780
add esp, 0xc
mov byte [esp + 0x510], 0xe
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00414edf
mov byte [esp + 0x510], 0xd
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413005
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x510], 9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41302d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x510], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x2c], vtable.CToken.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41305d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41307d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41309d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + 8]
jl 0x412d30
mov edi, ecx
mov edx, dword [esp + 0x4c]
push str.________________End_________________
push edx
lea ecx, [esp + 0x4c]
call fcn.00414f31
cmp dword [esp + 0x4c], 2
jle 0x4131e5
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 0x2c]
push 0
push 0
push 0
lea ecx, [esp + 0x98]
call edx
mov eax, dword [esp + 0x60]
xor esi, esi
test eax, eax
jle 0x413169
mov bl, 0xf
test esi, esi
js 0x412d87
cmp esi, eax
jge 0x412d87
mov eax, dword [esp + 0x5c]
lea eax, [eax + esi*4]
push 0x569cc8
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403900
add esp, 0xc
mov byte [esp + 0x510], bl
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x90]
call fcn.00414654
mov byte [esp + 0x510], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
inc esi
cmp esi, eax
jl 0x4130f8
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x4131e5
test esi, esi
js 0x412d87
cmp esi, eax
jge 0x412d87
mov ecx, dword [esp + 0x48]
lea eax, [ecx + esi*4]
push 0x569cc8
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00403900
add esp, 0xc
mov byte [esp + 0x510], 0x10
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x90]
call fcn.00414654
mov byte [esp + 0x510], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x413173
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
call fcn.00414bdf
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x60]
call fcn.00414bdf
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
call fcn.00414bdf
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00414bdf
lea ecx, [esp + 0x8c]
call fcn.0041481a
mov byte [esp + 0x510], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41324b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x510], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413273
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x510], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41329b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x510], 2
call fcn.00414d86
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 1
call fcn.00414d86
lea ecx, [esp + 0x44]
mov byte [esp + 0x510], 0
call fcn.00414d86
lea ecx, [esp + 0x8c]
mov dword [esp + 0x510], 0xffffffff
call fcn.00414896
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.005132f8
mov esp, ebp
pop ebp
ret
call fcn.00402480
int3