Function at 0x40985a
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ec
cmp dword [0x4ab430], 0
push ebx
push esi
push edi
mov dword [esp + 0x44], ecx
je 0x409881
push 0x4ab418
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.ConfigUpdateInfo.zip
mov edx, 0x4ab30c
lea ecx, [esp + 0x4c]
call fcn.0043ab55
pop ecx
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x3c]
call fcn.0043ac50
mov ecx, dword [0x4ab4f0]
lea eax, [esp + 0x38]
push eax
push str.LastMetadeUpdateTime
mov edx, 0x486104
call fcn.0044d2be
push 0xa
xor ebx, ebx
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x34], ebx
call dword [sym.imp.msvcrt.dll__wcstoui64]
add esp, 0x14
mov dword [esp + 0x3c], ebx
mov esi, eax
mov dword [esp + 0x40], ebx
lea eax, [esp + 0x3c]
mov edi, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [0x4ab3dc], ebx
je 0x409924
mov ecx, dword [esp + 0x40]
xor eax, eax
or eax, dword [esp + 0x3c]
or ecx, ebx
cmp edi, ecx
ja 0x409924
jb 0x409909
cmp esi, eax
ja 0x409924
add esi, 0xe234000
adc edi, 0x43
cmp edi, ecx
ja 0x409c47
jb 0x409924
cmp esi, eax
jae 0x409c47
push str.http:__update.chuyu.me_UpdateInfo.zip
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0043b487
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [esp + 0x50]
lea eax, [esp + 0x14]
push dword [esp + 0x50]
push str._t_I64X
push eax
call fcn.0043b264
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x70]
add esp, 0x10
push esi
call fcn.0044da27
sub esp, 0x14
lea ecx, [esp + 0x74]
push 0x486104
call fcn.00439a13
test eax, eax
jne 0x409a66
sub esp, 0x10
lea ecx, [esp + 0x70]
call fcn.0043999c
test eax, eax
jne 0x409a66
push ecx
push 0x440000
sub esp, 0xc
lea ecx, [esp + 0x74]
push ebx
call fcn.00439954
test eax, eax
jne 0x409a66
push ecx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x74]
call fcn.00439900
test eax, eax
jne 0x409a66
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x64]
call fcn.004398b7
test eax, eax
jne 0x409a66
cmp dword [esp + 0x1c], 0xc8
jne 0x409a66
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ac50
lea eax, [esp + 0x1c]
mov edi, ebx
push eax
mov eax, 0x400
lea ecx, [esp + 0x1c]
push eax
push eax
call fcn.0043aa22
jmp 0x409a4b
cmp dword [esp + 0x1c], ebx
je 0x409aaf
add edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push edi
call fcn.0043a582
lea eax, [esp + 0x1c]
push eax
push 0x400
lea eax, [edi + 0x400]
push eax
lea ecx, [esp + 0x24]
call fcn.0043aa22
add eax, edi
push eax
push dword [esp + 0x74]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x409a17
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
lea ecx, [esp + 0x60]
call fcn.00439add
or ebx, 0xffffffff
mov ecx, dword [esp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x48]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp dword [0x4ab430], 0
je 0x409aa6
push 0x4ab418
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x409aca
push edi
lea ecx, [esp + 0x1c]
call fcn.0043abd1
mov esi, dword [esp + 0x18]
push edi
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.0043985d
pop ecx
lea ecx, [esp + 0x80]
call fcn.00430db9
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x80]
push eax
mov ecx, edi
mov edx, dword [edi - 0xc]
call fcn.00439736
pop ecx
lea ecx, [esp + 0x80]
call fcn.00409765
test al, al
je 0x409c07
mov edx, str.UpdateInfo_Tag
lea ecx, [esp + 0x80]
call fcn.0043a873
mov dword [esp + 0x14], eax
test eax, eax
je 0x409c07
mov edx, str.UpdateInfo_Tag
mov ecx, 0x4ab3c0
call fcn.0043a873
test eax, eax
je 0x409b96
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x409b51
mov dword [esp + 0x18], 0x491414
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x409b61
mov eax, 0x491414
push 0xa
push ebx
push eax
call sub.msvcrt.dll__wcstoui64
add esp, 0xc
mov dword [esp + 0x14], eax
xor eax, eax
mov ebx, edx
push 0xa
push eax
push dword [esp + 0x20]
call sub.msvcrt.dll__wcstoui64
add esp, 0xc
cmp edx, ebx
ja 0x409c05
jb 0x409b94
xor ebx, ebx
cmp eax, dword [esp + 0x14]
ja 0x409c07
jmp 0x409b96
xor ebx, ebx
mov ecx, 0x4ab3c0
call fcn.00438a69
mov edx, dword [edi - 0xc]
mov ecx, edi
push 0x4ab3c0
call fcn.00439736
pop ecx
push dword [esi - 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, esi
call fcn.0044b3a9
mov eax, dword [esp + 0x44]
pop ecx
or eax, ebx
xor ecx, ecx
or ecx, dword [esp + 0x3c]
push eax
push ecx
lea eax, [esp + 0x1c]
push str._I64u
push eax
call fcn.00449eea
add esp, 0x10
push dword [0x4ab4f0]
push dword [eax]
push str.LastMetadeUpdateTime
push 0x486104
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x409c07
xor ebx, ebx
mov ecx, dword [esp + 0xc0]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esp + 0xb4]
call fcn.00431d5a
lea ecx, [edi - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esp + 0x60]
call fcn.00439add
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x14]
call fcn.0043ac50
mov ecx, dword [0x4ab4f0]
lea eax, [esp + 0x10]
push eax
push 0x48fadc
mov edx, 0x486104
call fcn.0044d2be
push ebx
call dword [sym.imp.msvcrt.dll__time64]
add esp, 0xc
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x50], edx
lea ecx, [esp + 0x4c]
push str._Y__m__d
push eax
call fcn.00439b13
lea ecx, [esp + 0x10]
push dword [eax]
call fcn.00431dfc
mov ecx, dword [esp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043c924
test esi, esi
je 0x409cde
call fcn.0043ac79
push 1
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
push ebx
push ebx
push eax
push 0x43274b
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x409cde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043c924
push 1
push 0xa
push str.UpdateInfo
mov ecx, 0x4ab3c0
call fcn.0043a80d
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x409a7a
push 0x104
lea eax, [esp + 0x1f4]
mov dword [esp + 0x28], ebx
push eax
push str.SystemDrive
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1f4]
push eax
call sym.Dismx86.exe_DismGetSystemInfoByPath
test eax, eax
jne 0x409eba
push ecx
lea eax, [esp + 0x1f4]
mov ecx, esp
push eax
call fcn.0043b487
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x34]
lea ecx, [ecx + 0x10]
call fcn.0041262b
pop ecx
test eax, eax
jne 0x409eba
mov eax, dword [esp + 0x30]
mov dword [eax + 0x14], 1
mov eax, dword [esp + 0x30]
lea ecx, [eax + 4]
test eax, eax
jne 0x409d92
mov ecx, ebx
mov dl, 1
call dword [sym.imp.CBSHost.dll_CreateCbsHostHelper]
mov edi, eax
test edi, edi
je 0x409eb6
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x409db5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x48], edi
mov edx, str.FileCollection_File
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0043a873
jmp 0x409e0e
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.00408967
mov dword [esp + 0x14], eax
test eax, eax
je 0x409dff
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
je 0x409df0
mov dword [ecx], eax
add dword [esp + 0x28], 4
jmp 0x409dff
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00434253
push ecx
push 4
push str.File
mov ecx, esi
call fcn.0043a77e
mov esi, eax
test esi, esi
jne 0x409dca
push 1
push 9
push str.Languages
mov ecx, edi
call fcn.0043a80d
mov esi, eax
test esi, esi
je 0x409eba
push ebx
push 0x55
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
push ebx
push ebx
lea eax, [esp + 0x148]
mov ecx, esi
push eax
call fcn.0043a80d
test eax, eax
jne 0x409eb2
push 0x55
lea eax, [esp + 0x144]
push eax
push 0x6d
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp eax, 1
jg 0x409e49
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x409eba
lea edx, [esp + 0x30]
call fcn.00408967
mov dword [esp + 0x14], eax
test eax, eax
je 0x409eba
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
je 0x409ea1
mov dword [ecx], eax
add dword [esp + 0x28], 4
jmp 0x409eba
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00434253
jmp 0x409eba
mov ecx, eax
jmp 0x409e7d
mov edi, dword [esp + 0x10]
push dword [esp + 0x34]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x30]
call fcn.004130fb
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
test eax, 0xfffffffc
je 0x40a14d
push 1
push 9
push str.UpdateLog
mov ecx, edi
call fcn.0043a80d
mov esi, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x28]
mov edx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
cmp esi, eax
je 0x409f61
mov edi, eax
push ecx
mov ecx, dword [esi]
push 4
push 0x48fc5c
call fcn.0043a719
test eax, eax
je 0x409f4a
mov eax, dword [eax + 4]
test eax, eax
jne 0x409f2d
mov eax, 0x491414
push 0xa
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
mov edx, dword [esp + 0x1c]
add esp, 0xc
add edx, eax
mov dword [esp + 0x10], edx
adc dword [esp + 0x1c], ebx
jmp 0x409f4e
mov edx, dword [esp + 0x10]
add esi, 4
cmp esi, edi
jne 0x409f0e
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x409f73
mov edi, dword [ecx + 4]
test edi, edi
jne 0x409f75
mov edi, 0x491414
jmp 0x409f75
mov edi, ebx
push dword [esp + 0x1c]
sub eax, esi
lea ecx, [esp + 0x14]
sar eax, 2
push edx
mov dword [esp + 0x28], eax
call fcn.00449f8d
pop ecx
pop ecx
push edi
push dword [eax]
mov edi, dword [esp + 0x28]
push edi
push 0x48fc68
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00449eea
add esp, 0x14
mov esi, eax
push 0x21
push 0x486080
call sym.Dismx86.exe_DismMultiLanguage
mov edi, dword [esp + 0x48]
push eax
push dword [esi]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0043c924
cmp esi, 1
je 0x409ff7
or eax, 0xffffffff
mov dword [esp + 0x20], eax
jmp 0x40a14d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xcc]
call fcn.00408692
cmp dword [esp + 0xcc], 0
mov dword [esp + 0x5c], ebx
jne 0x40a020
mov eax, dword [edi + 4]
mov dword [esp + 0xcc], eax
push ebx
push ebx
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
cmp dword [esp + 0x138], 0
je 0x40a137
push dword [0x4ab4f0]
push ebx
push 0x48fadc
push 0x486104
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x40
lea eax, [esp + 0x88]
mov dword [esp + 0x84], 0x44
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0xac], 0x101
lea edi, [esp + 0x4c]
mov edx, 0x48eab4
lea ecx, [esp + 0x14]
push 5
pop eax
mov word [esp + 0xb0], ax
xor eax, eax
stosd dword es:[edi], eax
push str.Dismx86.exe___Update
push 0x4ab30c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00430fb9
pop ecx
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.0043ab55
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40a0e3
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.0043c727
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x84]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a118
push dword [esp + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0x4c]
call edi
mov eax, dword [esp + 0x44]
push ebx
push 1
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esi - 0x10]
call fcn.0043c924
xor eax, eax
inc eax
jmp 0x40a13a
or eax, 0xffffffff
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x20], eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
lea ecx, [esp + 0x24]
call fcn.00430403
mov ebx, dword [esp + 0x20]
jmp 0x409a7a