Function at 0x412890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x538d2b
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.004144b9
lea ecx, [esp + 0x44]
mov dword [esp + 0x510], 0
call fcn.00414a40
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 1
call fcn.00414a40
lea ecx, [esp + 0x6c]
mov byte [esp + 0x510], 2
call fcn.00414a40
mov byte [esp + 0x510], 3
call fcn.00413432
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41293a
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.00413432
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41296c
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.00413432
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41299e
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.00414e71
push 0x104
lea edx, [esp + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x413163
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.00516740
add esp, 0xc
lea edx, [esp + 0xa4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x412a46
xor bl, bl
jmp 0x412a4f
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 0x412a6f
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 0x412a94
push str.system32driversetchosts.msn
push ecx
push edx
call fcn.00403900
add esp, 0xc
mov byte [esp + 0x510], 7
jmp 0x412aab
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 0x412add
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.00414391
test eax, eax
je 0x413163
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x90]
call fcn.004148f7
test eax, eax
je 0x412be3
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 0x412b56
test dx, dx
je 0x412b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x412b30
xor eax, eax
jmp 0x412b5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x412bb7
mov eax, dword [esp + 0x14]
mov ecx, str.________________End_________________
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412b96
test dx, dx
je 0x412b92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412b96
add eax, 4
add ecx, 4
test dx, dx
jne 0x412b70
xor eax, eax
jmp 0x412b9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x412bb7
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
call fcn.004148f7
jmp 0x412b64
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.00414e1f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
call fcn.004148f7
test eax, eax
jne 0x412b16
mov ebx, dword [esp + 0x60]
xor esi, esi
test ebx, ebx
jle 0x412c59
lea ecx, [ecx]
test esi, esi
js 0x412cc7
cmp esi, ebx
jge 0x412cc7
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 0x412c36
test dx, dx
je 0x412c32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412c36
add eax, 4
add ecx, 4
test dx, dx
jne 0x412c10
xor eax, eax
jmp 0x412c3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x412c54
push 1
push esi
lea ecx, [esp + 0x60]
call fcn.00414c53
mov ebx, dword [esp + 0x60]
inc esi
cmp esi, ebx
jl 0x412bf0
mov eax, dword [edi + 8]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x412ff5
lea esp, [esp]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
call fcn.00414b1f
mov eax, dword [esp + 0x10]
test eax, eax
js 0x412cc7
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 8]
jge 0x412cc7
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 0x412ccc
cmp eax, dword [esi - 0x10]
jne 0x412ccc
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x412d04
call fcn.00414196
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 0x413249
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.00513251
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.00413432
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x412930
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 0x412d7b
mov edx, ecx
movzx esi, dx
push esi
call fcn.004142e3
test eax, eax
je 0x412d8b
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00402040
jmp 0x412d8b
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 0x412df0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x412dde
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412dde
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 0x412dd5
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 0x412dec
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 0x412e14
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 0x412e41
cmp dword [ecx - 0xc], 0
jl 0x412e41
push eax
push ecx
call fcn.00513fa6
mov ecx, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x412e41
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x412e48
cmp dword [esp + 0x40], 0
jne 0x412e76
mov eax, dword [esp + 0x38]
test eax, eax
je 0x412e6f
cmp dword [ecx - 0xc], 0
jl 0x412e6f
push eax
push ecx
call fcn.00513fa6
add esp, 8
test eax, eax
je 0x412e6f
sub eax, dword [esp + 0x34]
sar eax, 1
cmp eax, 0xffffffff
jne 0x412e76
cmp dword [esp + 0x40], 0
je 0x412eb5
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.00414e1f
mov byte [esp + 0x510], 9
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
jmp 0x412dfb
cmp dword [esp + 0x74], 0
jle 0x412cc7
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 0x412cc7
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.00414e1f
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 0x412f45
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 0x412f6d
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 0x412f9d
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 0x412fbd
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 0x412fdd
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 0x412c70
mov edi, ecx
mov edx, dword [esp + 0x4c]
push str.________________End_________________
push edx
lea ecx, [esp + 0x4c]
call fcn.00414e71
cmp dword [esp + 0x4c], 2
jle 0x413125
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 0x4130a9
mov bl, 0xf
test esi, esi
js 0x412cc7
cmp esi, eax
jge 0x412cc7
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.00414594
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 0x4130a0
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 0x413038
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x413125
test esi, esi
js 0x412cc7
cmp esi, eax
jge 0x412cc7
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.00414594
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 0x41311c
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 0x4130b3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
call fcn.00414b1f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x60]
call fcn.00414b1f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
call fcn.00414b1f
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00414b1f
lea ecx, [esp + 0x8c]
call fcn.0041475a
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 0x41318b
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 0x4131b3
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 0x4131db
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.00414cc6
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 1
call fcn.00414cc6
lea ecx, [esp + 0x44]
mov byte [esp + 0x510], 0
call fcn.00414cc6
lea ecx, [esp + 0x8c]
mov dword [esp + 0x510], 0xffffffff
call fcn.004147d6
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.00513242
mov esp, ebp
pop ebp
ret
call fcn.00402480
int3