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

Disassembly:
mov eax, 0x1410
call fcn.00439c20
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 0x41edf0
mov ecx, str.modules360Inst.exe
mov word [esp + 0xc], 0
test ecx, ecx
je 0x41edf0
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 0x41edd8
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 0x41ede7
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 0x41ee0b
pop edi
pop esi
pop ebx
add esp, 0x1410
ret
mov eax, dword [0x44ffd8]
test eax, eax
jne 0x41ef3e
mov eax, dword [0x44ffdc]
test eax, eax
jne 0x41eed7
lea ecx, [esp + 0x41c]
push 0x400
push ecx
push eax
call esi
lea edx, [esp + 0x41c]
push edx
call ebx
mov eax, dword [0x44ffe0]
xor esi, esi
test eax, eax
jle 0x41ee5e
lea eax, [esp + 0x41c]
push eax
call ebx
mov eax, dword [0x44ffe0]
inc esi
cmp esi, eax
jl 0x41ee4a
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 0x41eebc
lea ecx, [esp + 0x41c]
push ecx
call edi
test eax, eax
je 0x41eec0
lea edx, [esp + 0x41c]
push edx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x41eec0
call fcn.0043a1e0
push eax
lea eax, [esp + 0x420]
push eax
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x41eece
lea ecx, [esp + 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x44ffdc], eax
je 0x41ef35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov edx, dword [0x44ffdc]
push str.Get360ProductHistoryManager
push edx
mov dword [0x44ffd8], eax
call esi
mov dword [0x44ffd4], eax
mov eax, dword [0x44ffdc]
push str.Create360FireWareStateFunction
push eax
call esi
mov ecx, dword [0x44ffdc]
push str.GetFireWallState
push ecx
mov dword [0x44ffd0], eax
call esi
mov edx, dword [0x44ffdc]
push str.Create360FireWareStateFunction2
push edx
mov dword [0x44ffcc], eax
call esi
mov dword [0x44ffc8], eax
mov eax, dword [0x44ffd8]
test eax, eax
je 0x41ef91
call eax
test eax, eax
je 0x41ef91
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test eax, eax
je 0x41ef91
lea edx, [esp + 0xc]
test edx, edx
je 0x41ef85
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x41ef91
lea ecx, [esp + 0xc]
push ecx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x41ef91
call fcn.0043a1e0
lea edx, [esp + 0xc]
push eax
push edx
call fcn.0043a1f0
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.004384f0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x1410
ret