Function at 0x430680
Capabilities:
Check if file exists
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e63b
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
push str.CRsFighting::ModifyHostsFile
push 0x473ab0
push 0x80
call fcn.0040c5c0
xor ebx, ebx
push 0x103
lea eax, [esp + 0x139]
push ebx
push eax
mov byte [esp + 0x140], bl
call fcn.00446e10
push 0x103
lea ecx, [esp + 0x41]
push ebx
push ecx
mov byte [esp + 0x48], bl
call fcn.00446e10
add esp, 0x24
push 0x104
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
jmp 0x430720
mov cl, byte [esp + eax + 0x128]
mov byte [esp + eax + 0x24], cl
inc eax
cmp cl, bl
jne 0x430720
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x430735
mov ecx, dword [str.driversetchosts]
mov edx, dword [0x476444]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax], ecx
mov ecx, dword [0x476448]
mov dword [eax + 4], edx
mov edx, dword [0x47644c]
mov dword [eax + 8], ecx
mov cx, word [0x476450]
mov dword [eax + 0xc], edx
mov dl, byte [0x476452]
push str.IsWow64Process
mov word [eax + 0x10], cx
push 0x473a1c
mov byte [eax + 0x12], dl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4307af
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x14], ebx
je 0x4307d9
push str.Wow64DisableWow64FsRedirection
push 0x473a1c
call ebp
push eax
call edi
cmp eax, ebx
je 0x4307d5
lea ecx, [esp + 0x1c]
push ecx
call eax
mov dword [esp + 0x18], eax
jmp 0x4307d9
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43097c
lea eax, [esp + 0x24]
push 0x476454
push eax
call fcn.00443d09
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x43097c
push 0x3ff
lea ecx, [esp + 0x231]
push ebx
push ecx
mov byte [esp + 0x238], bl
call fcn.00446e10
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x230]
push 0x400
push ecx
mov dword [esp + 0x644], ebx
call fcn.00445d94
add esp, 0xc
test eax, eax
je 0x4308a7
lea ecx, [ecx]
lea eax, [esp + 0x22c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430870
sub eax, edx
lea edx, [esp + 0x22c]
push edx
lea ecx, [esp + 0x18]
push ecx
mov edx, eax
call fcn.0040c470
push esi
lea edx, [esp + 0x230]
push 0x400
push edx
call fcn.00445d94
add esp, 0xc
test eax, eax
jne 0x430860
push esi
call fcn.00443ddd
add esp, 4
push str.rsdownload.rising.com.cn
lea eax, [esp + 0x18]
push eax
call fcn.00431120
push str.download.rising.com.cn
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.00431120
cmp esi, ebx
je 0x4309f6
cmp eax, ebx
je 0x4309f6
lea edx, [esp + 0x24]
push 0x473f84
push edx
call fcn.00443d09
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x43094b
lea esi, [esp + 0x14]
call fcn.0040c0a0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x430906
push edi
sub ecx, esi
push 1
push ecx
push eax
call fcn.0044603e
push edi
call fcn.00443ddd
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00442f3d
add esp, 0x1c
cmp eax, ebx
jl 0x430941
cmp eax, dword [esi - 8]
jg 0x430941
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
jmp 0x43094f
push 0x80070057
call fcn.00401000
mov esi, dword [esp + 0x14]
lea eax, [esi - 0x10]
mov dword [esp + 0x638], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsWow64Process
push 0x473a1c
mov dword [esp + 0x28], ebx
call ebp
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4309a3
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x20], ebx
je 0x4309c9
cmp dword [esp + 0x18], ebx
je 0x4309c9
mov esi, dword [esp + 0x1c]
push str.Wow64RevertWow64FsRedirection
push 0x473a1c
call ebp
push eax
call edi
cmp eax, ebx
je 0x4309c9
push esi
call eax
mov eax, 1
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.004426a0
add esp, 0x628
ret
call fcn.00430610
test eax, eax
je 0x430a0f
cmp dword [esp + 0x18], ebx
je 0x430a0f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00430650
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4309c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4309c9