Function at 0x412d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5391db
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x58bc40]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
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.0041bb48
lea ecx, [esp + 0x44]
mov dword [esp + 0x510], 0
call fcn.0041c0cf
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 1
call fcn.0041c0cf
lea ecx, [esp + 0x6c]
mov byte [esp + 0x510], 2
call fcn.0041c0cf
mov byte [esp + 0x510], 3
call fcn.00413912
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e1a
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.00413912
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e4c
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.00413912
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e7e
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.0041c500
push 0x104
lea edx, [esp + 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x413643
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x24]
push 0x56a34c
push ecx
call fcn.00406080
add esp, 0xc
push str.system32driversetchosts.msn
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00404010
mov esi, dword [eax]
add esp, 0xc
push 0x250
lea ecx, [esp + 0xa8]
push 0
push ecx
call fcn.00516840
add esp, 0xc
lea edx, [esp + 0xa4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x412f26
xor bl, bl
jmp 0x412f2f
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 0x412f4f
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 0x412f74
push str.system32driversetchosts.msn
push ecx
push edx
call fcn.00404010
add esp, 0xc
mov byte [esp + 0x510], 7
jmp 0x412f8b
push str.system32driversetchosts
push ecx
push edx
call fcn.00404010
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 0x412fbd
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.0041ba2b
test eax, eax
je 0x413643
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x90]
call fcn.0041bf86
test eax, eax
je 0x4130c3
lea ecx, [esp + 0x14]
call fcn.00403ce0
mov ecx, eax
call fcn.00403d60
mov eax, dword [esp + 0x14]
mov ecx, str._________Added_by_L2Updater_________
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413036
test dx, dx
je 0x413032
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413036
add eax, 4
add ecx, 4
test dx, dx
jne 0x413010
xor eax, eax
jmp 0x41303b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x413097
mov eax, dword [esp + 0x14]
mov ecx, str.________________End_________________
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413076
test dx, dx
je 0x413072
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413076
add eax, 4
add ecx, 4
test dx, dx
jne 0x413050
xor eax, eax
jmp 0x41307b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x413097
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
call fcn.0041bf86
jmp 0x413044
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.0041c4ae
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
call fcn.0041bf86
test eax, eax
jne 0x412ff6
mov ebx, dword [esp + 0x60]
xor esi, esi
test ebx, ebx
jle 0x413139
lea ecx, [ecx]
test esi, esi
js 0x4131a7
cmp esi, ebx
jge 0x4131a7
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 0x413116
test dx, dx
je 0x413112
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413116
add eax, 4
add ecx, 4
test dx, dx
jne 0x4130f0
xor eax, eax
jmp 0x41311b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x413134
push 1
push esi
lea ecx, [esp + 0x60]
call fcn.0041c2e2
mov ebx, dword [esp + 0x60]
inc esi
cmp esi, ebx
jl 0x4130d0
mov eax, dword [edi + 8]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4134d5
lea esp, [esp]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
call fcn.0041c1ae
mov eax, dword [esp + 0x10]
test eax, eax
js 0x4131a7
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 8]
jge 0x4131a7
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 0x4131ac
cmp eax, dword [esi - 0x10]
jne 0x4131ac
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4131e4
call fcn.0041467d
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 0x413729
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.0051370f
add esp, 0x10
lea ecx, [esp + 0x30]
add edi, 0x10
push ecx
mov dword [ebx], edi
call fcn.004055b0
lea edx, [esp + 0x18]
mov byte [esp + 0x510], 9
mov dword [esp + 0x84], edx
call fcn.00413912
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x412e10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, 0x568a68
mov byte [esp + 0x510], 0xa
test ecx, 0xffff0000
jne 0x41325b
mov edx, ecx
movzx esi, dx
push esi
call fcn.004147ca
test eax, eax
je 0x41326b
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00402040
jmp 0x41326b
push 1
push 0x568a68
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 0x4132d0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4132be
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4132be
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 0x4132b5
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 0x4132cc
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 0x4132f4
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 0x413321
cmp dword [ecx - 0xc], 0
jl 0x413321
push eax
push ecx
call fcn.00514464
mov ecx, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x413321
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x413328
cmp dword [esp + 0x40], 0
jne 0x413356
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41334f
cmp dword [ecx - 0xc], 0
jl 0x41334f
push eax
push ecx
call fcn.00514464
add esp, 8
test eax, eax
je 0x41334f
sub eax, dword [esp + 0x34]
sar eax, 1
cmp eax, 0xffffffff
jne 0x413356
cmp dword [esp + 0x40], 0
je 0x413395
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x30]
call fcn.004057f0
mov byte [esp + 0x510], 0xc
mov edx, dword [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x74]
call fcn.0041c4ae
mov byte [esp + 0x510], 9
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
jmp 0x4132db
cmp dword [esp + 0x74], 0
jle 0x4131a7
mov ecx, dword [esp + 0x70]
push 0x56a41c
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00404010
add esp, 0xc
mov byte [esp + 0x510], 0xd
cmp dword [esp + 0x74], 1
jle 0x4131a7
mov ecx, dword [esp + 0x70]
add ecx, 4
push ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00405e20
add esp, 0xc
mov byte [esp + 0x510], 0xe
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0041c4ae
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 0x413425
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 0x41344d
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 0x41347d
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 0x41349d
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 0x4134bd
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 0x413150
mov edi, ecx
mov edx, dword [esp + 0x4c]
push str.________________End_________________
push edx
lea ecx, [esp + 0x4c]
call fcn.0041c500
cmp dword [esp + 0x4c], 2
jle 0x413605
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 0x413589
mov bl, 0xf
test esi, esi
js 0x4131a7
cmp esi, eax
jge 0x4131a7
mov eax, dword [esp + 0x5c]
lea eax, [eax + esi*4]
push 0x56a420
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404010
add esp, 0xc
mov byte [esp + 0x510], bl
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x90]
call fcn.0041bc23
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 0x413580
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 0x413518
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x413605
test esi, esi
js 0x4131a7
cmp esi, eax
jge 0x4131a7
mov ecx, dword [esp + 0x48]
lea eax, [ecx + esi*4]
push 0x56a420
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00404010
add esp, 0xc
mov byte [esp + 0x510], 0x10
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x90]
call fcn.0041bc23
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 0x4135fc
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 0x413593
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
call fcn.0041c1ae
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x60]
call fcn.0041c1ae
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
call fcn.0041c1ae
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0041c1ae
lea ecx, [esp + 0x8c]
call fcn.0041bde9
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 0x41366b
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 0x413693
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 0x4136bb
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.0041c355
lea ecx, [esp + 0x58]
mov byte [esp + 0x510], 1
call fcn.0041c355
lea ecx, [esp + 0x44]
mov byte [esp + 0x510], 0
call fcn.0041c355
lea ecx, [esp + 0x8c]
mov dword [esp + 0x510], 0xffffffff
call fcn.0041be65
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.00513700
mov esp, ebp
pop ebp
ret
call fcn.00402480
int3