Function at 0x420800
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
mov eax, 0x1410
call fcn.00456620
push ebx
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
test eax, eax
je 0x4208d0
mov ecx, str.modules360Inst.exe
mov word [esp + 0xc], 0
test ecx, ecx
je 0x4208d0
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x41c]
push str.modules360Inst.exe
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4208b8
lea edx, [esp + 0x41c]
push 0x800
push edx
push 0
call esi
lea eax, [esp + 0x41c]
push eax
call ebx
lea ecx, [esp + 0x41c]
push str.modules360Inst.exe
lea edx, [esp + 0x420]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x41c]
push 0x208
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x4208c7
push 0x208
lea edx, [esp + 0x10]
push str.modules360Inst.exe
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x4208eb
pop edi
pop esi
pop ebx
add esp, 0x1410
ret
mov eax, dword [0x473100]
test eax, eax
jne 0x420a1e
mov eax, dword [0x473104]
test eax, eax
jne 0x4209b7
lea ecx, [esp + 0x41c]
push 0x400
push ecx
push eax
call esi
lea edx, [esp + 0x41c]
push edx
call ebx
mov eax, dword [0x473108]
xor esi, esi
test eax, eax
jle 0x42093e
lea eax, [esp + 0x41c]
push eax
call ebx
mov eax, dword [0x473108]
inc esi
cmp esi, eax
jl 0x42092a
lea ecx, [esp + 0x41c]
push str.360Common.dll
lea edx, [esp + 0x420]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x41c]
test eax, eax
je 0x42099c
lea ecx, [esp + 0x41c]
push ecx
call edi
test eax, eax
je 0x4209a0
lea edx, [esp + 0x41c]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x4209a0
call fcn.00456be0
push eax
lea eax, [esp + 0x420]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x4209ae
lea ecx, [esp + 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x473104], eax
je 0x420a15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov edx, dword [0x473104]
push str.Get360ProductHistoryManager
push edx
mov dword [0x473100], eax
call esi
mov dword [0x4730fc], eax
mov eax, dword [0x473104]
push str.Create360FireWareStateFunction
push eax
call esi
mov ecx, dword [0x473104]
push str.GetFireWallState
push ecx
mov dword [0x4730f8], eax
call esi
mov edx, dword [0x473104]
push str.Create360FireWareStateFunction2
push edx
mov dword [0x4730f4], eax
call esi
mov dword [0x4730f0], eax
mov eax, dword [0x473100]
test eax, eax
je 0x420a71
call eax
test eax, eax
je 0x420a71
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test eax, eax
je 0x420a71
lea edx, [esp + 0xc]
test edx, edx
je 0x420a65
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x420a71
lea ecx, [esp + 0xc]
push ecx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x420a71
call fcn.00456be0
lea edx, [esp + 0xc]
push eax
push edx
call fcn.00456bf0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1410
ret
mov eax, dword [esp + 0x1420]
push 5
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004204a0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x1410
ret