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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4249f0
push eax
mov eax, 0x6070
mov dword fs:[0], esp
call fcn.00422fa0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x1c], ecx
je 0x41d048
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x41d048
mov dl, byte [0x42f83c]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x647]
mov byte [ebp - 0x648], dl
mov byte [ebp - 0xc60], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xc5f]
mov byte [ebp - 0x544], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x543]
mov byte [ebp - 0x134], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x74c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x74b]
mov byte [ebp - 0x850], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x84f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x33a]
mov word [ebp - 0x33c], 0
mov dl, byte [0x42f83c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xa57]
mov byte [ebp - 0xa58], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xb5b]
mov byte [ebp - 0xb5c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x42f804]
test eax, eax
jne 0x41c56c
mov eax, dword [0x42f808]
test eax, eax
jne 0x41c527
lea eax, [ebp - 0x1564]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x1564]
push ecx
call edi
mov eax, dword [0x42f80c]
xor esi, esi
test eax, eax
jle 0x41c488
lea edx, [ebp - 0x1564]
push edx
call edi
mov eax, dword [0x42f80c]
inc esi
cmp esi, eax
jl 0x41c475
lea eax, [ebp - 0x1564]
push str.360Common.dll
lea ecx, [ebp - 0x1564]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x1564]
test edx, edx
je 0x41c50d
lea eax, [ebp - 0x1564]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41c511
lea ecx, [ebp - 0x1564]
push ecx
call fcn.0041d070
add esp, 4
test eax, eax
jne 0x41c511
lea edx, [ebp - 0x1564]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
call fcn.00420d70
push eax
push 0
lea eax, [ebp - 0x1564]
push esi
push eax
push edi
call fcn.00401d60
push eax
call fcn.00420d80
add esp, 8
xor eax, eax
jmp 0x41c51e
lea ecx, [ebp - 0x1564]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f808], eax
je 0x41c55f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov edx, dword [0x42f808]
push str.Get360ProductHistoryManager
push edx
mov dword [0x42f804], eax
call esi
mov dword [0x42f800], eax
mov eax, dword [0x42f808]
push str.Create360FireWareStateFunction
push eax
call esi
mov dword [0x42f7fc], eax
mov eax, dword [0x42f804]
test eax, eax
je 0x41d048
call eax
test eax, eax
je 0x41d048
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x41d048
lea eax, [ebp - 0x2c]
mov edi, str.lmkx
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.lmkx
push ebx
call dword [edx + 0x1c]
mov ecx, dword [ebx]
lea edx, [ebp - 0x33c]
push 0x104
lea eax, [ebp - 0x2c]
push edx
push eax
push ebx
call dword [ecx + 0x24]
lea ecx, [ebp - 0x33c]
test ecx, ecx
jne 0x41c5c8
xor esi, esi
jmp 0x41c603
lea edx, [ebp - 0x33c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov esi, esp
push 0
push 0
push edi
push esi
lea eax, [ebp - 0x33c]
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
lea edx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp - 0xa58]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0xb5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0xa48], 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov dl, byte [0x42f83c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [ebp - 0x440], dl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [ebp - 0x43f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x953]
mov byte [ebp - 0x954], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x440]
lea edx, [ebp - 0x33c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x954]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
push edx
push ebx
call dword [ecx + 8]
lea eax, [ebp - 0x33c]
test eax, eax
jne 0x41c6f3
xor esi, esi
jmp 0x41c72e
lea ecx, [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov esi, esp
push 0
push 0
push edi
push esi
lea edx, [ebp - 0x33c]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x440]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x954]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x440]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [ebp - 0x544]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x944], 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push str._u_d
lea edx, [ebp - 0xc60]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0xc60]
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebx]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0xc60]
push ecx
push ebx
call dword [edx + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp - 0x33c]
push 0x104
lea ecx, [ebp - 0x2c]
push eax
push ecx
push ebx
call dword [edx + 0x24]
lea edx, [ebp - 0x33c]
test edx, edx
jne 0x41c80e
xor esi, esi
jmp 0x41c849
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov esi, esp
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x33c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x544]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x430]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x74c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xb4c]
lea eax, [ebp - 0xa58]
push ecx
push edx
lea ecx, [ebp - 0x954]
push eax
push ecx
push str._s_s_s_s
lea edx, [ebp - 0x648]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x648]
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebx]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x648]
push ecx
push ebx
call dword [edx + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp - 0x33c]
push 0x104
lea ecx, [ebp - 0x2c]
push eax
push ecx
push ebx
call dword [edx + 0x24]
lea edx, [ebp - 0x33c]
test edx, edx
jne 0x41c906
xor esi, esi
jmp 0x41c941
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov esi, esp
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x33c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x74c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x430]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x850]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xb4c]
lea eax, [ebp - 0xa58]
push ecx
push edx
lea ecx, [ebp - 0x954]
push eax
lea edx, [ebp - 0x544]
push ecx
push edx
push str._s_s_s_s_s
lea eax, [ebp - 0x648]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x20
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x648]
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebx]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x648]
push ecx
push ebx
call dword [edx + 0x1c]
mov edx, dword [ebx]
lea eax, [ebp - 0x33c]
push 0x104
lea ecx, [ebp - 0x2c]
push eax
push ecx
push ebx
call dword [edx + 0x24]
lea edx, [ebp - 0x33c]
test edx, edx
jne 0x41ca2e
xor esi, esi
jmp 0x41ca69
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov esi, esp
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x33c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x850]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 1]
mov ecx, dword [edx + 0x40]
push ecx
lea edx, [ebp - 0x850]
lea ecx, [ebp - 0x544]
push edx
push ecx
lea edx, [ebp - 0x74c]
lea ecx, [ebp - 0x440]
push edx
mov edx, dword [ebp + 8]
push ecx
push str.m1_sm2_sm3_sm4_s_s
push eax
push edx
mov dword [ebp - 0x30], eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xd63]
mov byte [ebp - 0xd64], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc3
xor eax, eax
lea edi, [ebp - 0x1873]
mov byte [ebp - 0x1874], 0
rep stosd dword es:[edi], eax
add esp, 0x20
lea ecx, [ebp - 0x14]
stosb byte es:[edi], al
call fcn.0040f230
lea eax, [ebp - 0xd64]
push 0x104
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040f920
test eax, eax
je 0x41cb79
lea ecx, [ebp - 0x1874]
push 0x30e
push ecx
lea edi, [ebp - 0xd64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0xd64]
push ecx
push edx
call fcn.0041f190
add esp, 0x10
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x2073]
mov byte [ebp - 0x2074], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x600
xor eax, eax
lea edi, [ebp - 0x607b]
mov byte [ebp - 0x607c], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x2074]
push 0x800
push eax
lea ecx, [ebp - 0x14]
call fcn.0040fe60
test eax, eax
je 0x41cbed
lea ecx, [ebp - 0x607c]
push 0x1802
push ecx
lea edi, [ebp - 0x2074]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0x2074]
push ecx
push edx
call fcn.0041f190
add esp, 0x10
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x2873]
mov byte [ebp - 0x2874], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x600
xor eax, eax
lea edi, [ebp - 0x4877]
mov byte [ebp - 0x4878], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x2874]
push 0x800
push eax
lea ecx, [ebp - 0x14]
call fcn.00411e80
test eax, eax
je 0x41cc61
lea ecx, [ebp - 0x4878]
push 0x1802
push ecx
lea edi, [ebp - 0x2874]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp - 0x2874]
push ecx
push edx
call fcn.0041f190
add esp, 0x10
mov eax, dword [0x42a2c0]
mov ecx, 0x42f83c
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x41cd9f
mov edx, ecx
shr edx, 0x10
jne 0x41cd49
mov eax, ecx
mov ecx, dword [0x42f838]
xor ebx, ebx
lea edx, [ebp - 0x130]
mov bx, ax
mov eax, dword [ecx + 8]
push 0x100
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x41ccaf
mov byte [ebp - 0x130], al
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x41cceb
lea edx, [ebp - 0x130]
test edx, edx
jne 0x41ccc9
xor eax, eax
jmp 0x41ccd6
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403210
jmp 0x41cd9f
push 0x1ff
lea ecx, [ebp - 0x10]
mov edi, 0x200
call fcn.004030a0
mov esi, eax
test esi, esi
je 0x41cd3d
mov edx, dword [0x42f838]
push edi
push esi
push ebx
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x41cd1c
mov byte [esi], al
mov ecx, edi
sub ecx, eax
cmp ecx, 2
jg 0x41cd3d
add edi, 0x100
lea ecx, [ebp - 0x10]
lea edx, [edi - 1]
push edx
call fcn.004030a0
mov esi, eax
test esi, esi
jne 0x41cd03
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403150
jmp 0x41cd9f
push 0x42f83c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41cd9f
lea eax, [esi + 0xd]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41cd9f
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ecx, [esi + 1]
add eax, 0xc
cmp ecx, esi
mov dword [ebp - 0x10], eax
jb 0x41cd9f
mov ecx, esi
mov esi, 0x42f83c
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x42f7f8]
xor ecx, ecx
mov ebx, eax
mov cl, ah
mov eax, dword [0x42f804]
and ebx, 0xff
test eax, eax
mov byte [ebp - 4], 1
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], ecx
jne 0x41cf3d
mov eax, dword [0x42f808]
test eax, eax
jne 0x41cefc
lea edx, [ebp - 0x1164]
push 0x400
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x1164]
push eax
call edi
mov eax, dword [0x42f80c]
xor esi, esi
test eax, eax
jle 0x41ce14
lea ecx, [ebp - 0x1164]
push ecx
call edi
mov eax, dword [0x42f80c]
inc esi
cmp esi, eax
jl 0x41ce01
lea edx, [ebp - 0x1164]
push str.360Common.dll
lea eax, [ebp - 0x1164]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x1164]
test ecx, ecx
je 0x41cedf
lea edx, [ebp - 0x1164]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41cee6
lea eax, [ebp - 0x1164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x1164]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call ebx
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x41cee3
lea edx, [ebp - 0x1164]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x1164]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call ebx
call fcn.00420d70
push eax
push edi
call fcn.00420d80
mov ebx, dword [ebp + 0xc]
add esp, 8
xor eax, eax
jmp 0x41cef3
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1164]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f808], eax
je 0x41cf34
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov edx, dword [0x42f808]
push str.Get360ProductHistoryManager
push edx
mov dword [0x42f804], eax
call esi
mov dword [0x42f800], eax
mov eax, dword [0x42f808]
push str.Create360FireWareStateFunction
push eax
call esi
mov dword [0x42f7fc], eax
mov eax, dword [0x42f804]
test eax, eax
je 0x41cf4b
call eax
test eax, eax
je 0x41cf4b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41cf4d
xor eax, eax
mov edx, dword [eax]
push eax
call dword [edx + 0x40]
neg eax
sbb eax, eax
mov ecx, 0x200
and eax, 0x20
lea edi, [ebp - 0x3074]
add eax, 0x20
push 0x800
mov esi, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3074]
push eax
call fcn.0041ed90
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [eax + 0x88]
mov eax, dword [eax + 0x40]
test ecx, ecx
lea ecx, [ebp - 0x3074]
push 1
push ecx
push esi
push edx
push ebx
lea ecx, [ebp - 0x4878]
push eax
lea edx, [ebp - 0x1874]
push ecx
lea eax, [ebp - 0x607c]
push edx
lea ecx, [ebp - 0x850]
push eax
lea edx, [ebp - 0x544]
push ecx
lea eax, [ebp - 0x74c]
push edx
lea ecx, [ebp - 0x440]
push eax
push ecx
je 0x41cfda
push str.http:__sale.360.cn_nsale.html_m1_sm2_sm3_sm4_svirusinfo_sothervirus_savinfo_spver1_sp_dsigexpired_dbit_dv360_sinst360sd_d
jmp 0x41cfdf
push str.http:__sale.360.cn_popup_avtab.html_m1_sm2_sm3_sm4_svirusinfo_sothervirus_savinfo_spver1_sp_dsigexpired_dbit_dv360_sinst360sd_d
lea edx, [ebp - 0x10]
push edx
call fcn.00403550
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
add esp, 0x3c
push eax
push 0x42a954
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp - 0x10]
mov edx, dword [0x42a2c4]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d032
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41d032
mov edx, dword [ebp - 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f260
mov eax, 1
jmp 0x41d04a
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x6088]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8