Function at 0x409af8
Capabilities:
Create thread
Get geographical location
Query environment variable
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ec
cmp dword [0x4ad3a8], 0
push ebx
push esi
push edi
mov dword [esp + 0x44], ecx
je 0x409b1f
push 0x4ad390
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x491bbc
mov edx, 0x4ad284
lea ecx, [esp + 0x4c]
call fcn.0043baed
pop ecx
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x3c]
call fcn.0043bbe8
mov ecx, dword [0x4ad468]
lea eax, [esp + 0x38]
push eax
push str.LastMetadeUpdateTime
mov edx, 0x488134
call fcn.0044e2fd
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 [0x4ad354], ebx
je 0x409bc2
mov ecx, dword [esp + 0x40]
xor eax, eax
or eax, dword [esp + 0x3c]
or ecx, ebx
cmp edi, ecx
ja 0x409bc2
jb 0x409ba7
cmp esi, eax
ja 0x409bc2
add esi, 0xe234000
adc edi, 0x43
cmp edi, ecx
ja 0x409ee5
jb 0x409bc2
cmp esi, eax
jae 0x409ee5
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.0043c2b8
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.0043c2a4
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x70]
add esp, 0x10
push esi
call fcn.0044ea62
sub esp, 0x14
lea ecx, [esp + 0x74]
push 0x488134
call fcn.0043aa8b
test eax, eax
jne 0x409d04
sub esp, 0x10
lea ecx, [esp + 0x70]
call fcn.0043aa14
test eax, eax
jne 0x409d04
push ecx
push 0x440000
sub esp, 0xc
lea ecx, [esp + 0x74]
push ebx
call fcn.0043a9cc
test eax, eax
jne 0x409d04
push ecx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x74]
call fcn.0043a978
test eax, eax
jne 0x409d04
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x64]
call fcn.0043a92f
test eax, eax
jne 0x409d04
cmp dword [esp + 0x1c], 0xc8
jne 0x409d04
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x1c]
call fcn.0043bbe8
lea eax, [esp + 0x1c]
mov edi, ebx
push eax
mov eax, 0x400
lea ecx, [esp + 0x1c]
push eax
push eax
call fcn.0043b9dd
jmp 0x409ce9
cmp dword [esp + 0x1c], ebx
je 0x409d4d
add edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push edi
call fcn.0043b549
lea eax, [esp + 0x1c]
push eax
push 0x400
lea eax, [edi + 0x400]
push eax
lea ecx, [esp + 0x24]
call fcn.0043b9dd
add eax, edi
push eax
push dword [esp + 0x74]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x409cb5
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esi - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x60]
call fcn.0043ab53
or ebx, 0xffffffff
mov ecx, dword [esp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [esp + 0x48]
lea ecx, [ecx - 0x10]
call fcn.0043d912
cmp dword [0x4ad3a8], 0
je 0x409d44
push 0x4ad390
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 0x409d68
push edi
lea ecx, [esp + 0x1c]
call fcn.0043bb69
mov esi, dword [esp + 0x18]
push edi
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.0043a8d5
pop ecx
lea ecx, [esp + 0x80]
call fcn.00431b45
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x80]
push eax
mov ecx, edi
mov edx, dword [edi - 0xc]
call fcn.0043a7ac
pop ecx
lea ecx, [esp + 0x80]
call fcn.00409a03
test al, al
je 0x409ea5
mov edx, str.UpdateInfo_Tag
lea ecx, [esp + 0x80]
call fcn.0043b82e
mov dword [esp + 0x14], eax
test eax, eax
je 0x409ea5
mov edx, str.UpdateInfo_Tag
mov ecx, 0x4ad338
call fcn.0043b82e
test eax, eax
je 0x409e34
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x409def
mov dword [esp + 0x18], 0x4934ec
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x409dff
mov eax, 0x4934ec
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 0x409ea3
jb 0x409e32
xor ebx, ebx
cmp eax, dword [esp + 0x14]
ja 0x409ea5
jmp 0x409e34
xor ebx, ebx
mov ecx, 0x4ad338
call fcn.00439aeb
mov edx, dword [edi - 0xc]
mov ecx, edi
push 0x4ad338
call fcn.0043a7ac
pop ecx
push dword [esi - 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, esi
call fcn.0044c3e8
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.0044af44
add esp, 0x10
push dword [0x4ad468]
push dword [eax]
push str.LastMetadeUpdateTime
push 0x488134
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
jmp 0x409ea5
xor ebx, ebx
mov ecx, dword [esp + 0xc0]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0xb4]
call fcn.0043295e
lea ecx, [edi - 0x10]
call fcn.0043d912
lea ecx, [esi - 0x10]
call fcn.0043d912
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x60]
call fcn.0043ab53
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x14]
call fcn.0043bbe8
mov ecx, dword [0x4ad468]
lea eax, [esp + 0x10]
push eax
push str.LastUpdate
mov edx, 0x488134
call fcn.0044e2fd
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 0x491b80
push eax
call fcn.0043ab89
lea ecx, [esp + 0x10]
push dword [eax]
call fcn.00432a00
mov ecx, dword [esp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
test esi, esi
je 0x409f7c
call fcn.0043bc11
push 1
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
push ebx
push ebx
push eax
push 0x43337a
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x409f7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0043d912
push 1
push 0xa
push str.UpdateInfo
mov ecx, 0x4ad338
call fcn.0043b7cc
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x409d18
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 0x40a158
push ecx
lea eax, [esp + 0x1f4]
mov ecx, esp
push eax
call fcn.0043c2b8
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x34]
lea ecx, [ecx + 0x10]
call fcn.004129dc
pop ecx
test eax, eax
jne 0x40a158
mov eax, dword [esp + 0x30]
mov dword [eax + 0x14], 1
mov eax, dword [esp + 0x30]
lea ecx, [eax + 4]
test eax, eax
jne 0x40a030
mov ecx, ebx
mov dl, 1
call dword [sym.imp.CBSHost.dll_CreateCbsHostHelper]
mov edi, eax
test edi, edi
je 0x40a154
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x40a053
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.0043b82e
jmp 0x40a0ac
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.00408aec
mov dword [esp + 0x14], eax
test eax, eax
je 0x40a09d
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
je 0x40a08e
mov dword [ecx], eax
add dword [esp + 0x28], 4
jmp 0x40a09d
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043505b
push ecx
push 4
push str.File
mov ecx, esi
call fcn.0043b741
mov esi, eax
test esi, esi
jne 0x40a068
push 1
push 9
push str.Languages
mov ecx, edi
call fcn.0043b7cc
mov esi, eax
test esi, esi
je 0x40a158
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.0043b7cc
test eax, eax
jne 0x40a150
push 0x55
lea eax, [esp + 0x144]
push eax
push 0x6d
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
cmp eax, 1
jg 0x40a0e7
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40a158
lea edx, [esp + 0x30]
call fcn.00408aec
mov dword [esp + 0x14], eax
test eax, eax
je 0x40a158
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
je 0x40a13f
mov dword [ecx], eax
add dword [esp + 0x28], 4
jmp 0x40a158
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043505b
jmp 0x40a158
mov ecx, eax
jmp 0x40a11b
mov edi, dword [esp + 0x10]
push dword [esp + 0x34]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x30]
call fcn.004134ac
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
test eax, 0xfffffffc
je 0x40a3eb
push 1
push 9
push str.UpdateLog
mov ecx, edi
call fcn.0043b7cc
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 0x40a1ff
mov edi, eax
push ecx
mov ecx, dword [esi]
push 4
push 0x491d24
call fcn.0043b6e0
test eax, eax
je 0x40a1e8
mov eax, dword [eax + 4]
test eax, eax
jne 0x40a1cb
mov eax, 0x4934ec
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 0x40a1ec
mov edx, dword [esp + 0x10]
add esi, 4
cmp esi, edi
jne 0x40a1ac
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40a211
mov edi, dword [ecx + 4]
test edi, edi
jne 0x40a213
mov edi, 0x4934ec
jmp 0x40a213
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.0044afe7
pop ecx
pop ecx
push edi
push dword [eax]
mov edi, dword [esp + 0x28]
push edi
push 0x491d30
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044af44
add esp, 0x14
mov esi, eax
push 0x21
push 0x4880b0
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.0043d912
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0043d912
cmp esi, 1
je 0x40a295
or eax, 0xffffffff
mov dword [esp + 0x20], eax
jmp 0x40a3eb
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xcc]
call fcn.00408817
cmp dword [esp + 0xcc], 0
mov dword [esp + 0x5c], ebx
jne 0x40a2be
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 0x40a3d5
push dword [0x4ad468]
push ebx
push str.LastUpdate
push 0x488134
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, 0x490b7c
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 0x4ad284
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00431d43
pop ecx
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.0043baed
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40a381
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.0043d715
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 0x40a3b6
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.0043d912
xor eax, eax
inc eax
jmp 0x40a3d8
or eax, 0xffffffff
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x20], eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x24]
call fcn.004303a3
mov ebx, dword [esp + 0x20]
jmp 0x409d18