Function at 0x404580
Capabilities:
Create thread
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5016
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x517728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x14]
mov dword [ebp - 0x14], 0
mov ecx, ebx
cmp edi, 1
jne 0x404b09
push 0
push dword [esi + 4]
call fcn.00468e2e
push 0x148
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.004bacf0
add esp, 0xc
lea ecx, [ebp - 0x1b0]
call fcn.0046d021
push 0
push ebx
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 4], 0
push 0x50aa74
call fcn.0046e8d7
lea ecx, [ebp - 0x1b0]
call fcn.0046d798
push eax
mov ecx, ebx
call fcn.004685cd
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00468449
push str.progress
mov ecx, ebx
call fcn.00468716
mov edi, eax
test edi, edi
je 0x40466e
push 0x50aaa0
mov ecx, edi
call fcn.00470988
push 1
mov ecx, edi
call fcn.004709ca
push 0
mov ecx, edi
call fcn.004709fc
push 0x64
mov ecx, edi
call fcn.004709e7
push 0
mov ecx, edi
call fcn.00470a11
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
test edi, edi
je 0x4046a3
push edi
push 0
push 0x80
mov ecx, esi
call fcn.00470474
push edi
push 1
push 0x80
mov ecx, esi
call fcn.00470474
push 0
call fcn.004c896c
add esp, 4
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov edi, eax
mov dword [ebp - 0x18], 0xf
mov ebx, edx
mov byte [ebp - 0x2c], 0
push 0x2e
push str.http:__cdnwd.dhsf.xqhuyu.com_client_MakeLogin_
call fcn.004085b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0xe
push str.version.dat_t
cmp eax, 0xe
jb 0x404714
cmp edx, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ecx + 0xe]
cmovae esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.004baf80
add esp, 0xc
mov byte [esi + 0xe], 0
jmp 0x40472b
mov byte [ebp - 0x1b4], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x1b4]
push 0xe
call fcn.0040a1e0
push ebx
push edi
lea ecx, [ebp - 0x1cc]
call fcn.00402500
add esp, 8
mov byte [ebp - 4], 2
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x404749
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub eax, ebx
push ecx
push edx
cmp ecx, eax
ja 0x40477d
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
lea edi, [ebx + ecx]
cmovae esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
lea eax, [ebx + esi]
push eax
call fcn.004baf80
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x404793
mov byte [ebp - 0x1b4], 0
push dword [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a1e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1b8]
cmp edx, 0x10
jb 0x4047d1
mov ecx, dword [ebp - 0x1cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4047c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b4e
push edx
push ecx
call fcn.004b9340
add esp, 8
lea ecx, [ebp - 0x68]
call fcn.00416cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
push 0x2e
mov dword [ebp - 0x48], 0
push str.http:__cdnwd.dhsf.xqhuyu.com_client_MakeLogin_
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.004085b0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.00403380
add esp, 4
test al, al
je 0x40497a
mov edx, str.http:__cdnwd.dhsf.xqhuyu.com_client_MakeLogin_
lea ecx, [ebp - 0x48]
call fcn.00409320
test al, al
jne 0x40497a
push 0x2b
xor eax, eax
mov dword [ebp - 0x1cc], 0
push str.Update_downloaded._Please_install_manually.
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 7
mov word [ebp - 0x1cc], ax
call fcn.00408400
mov byte [ebp - 4], 5
mov ecx, dword [0x51b37c]
push str.progressText
add ecx, 0x14
call fcn.00468716
mov edx, eax
test edx, edx
je 0x4048aa
cmp dword [ebp - 0x1b8], 8
lea ecx, [ebp - 0x1cc]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x1cc]
push ecx
mov ecx, edx
call dword [eax + 0x3c]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1b8]
cmp edx, 8
jb 0x4048ee
mov ecx, dword [ebp - 0x1cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4048e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b53
push edx
push ecx
call fcn.004b9340
add esp, 8
push 0x34
call fcn.004b90bf
mov esi, eax
add esp, 4
mov dword [ebp - 0x1b4], esi
push 0x5181d0
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00407060
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x18]
push eax
mov dword [ebp - 0x30], ecx
call fcn.00407060
mov dword [esi + 0x30], 0x403f30
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
push 0
push esi
push 0x412020
push 0
push 0
call fcn.004c727d
add esp, 0x18
mov dword [ebp - 0x50], eax
test eax, eax
je 0x404b65
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x404b58
push ecx
push eax
call fcn.004a6096
add esp, 8
test eax, eax
jne 0x404b5f
jmp 0x404a37
push 0x14
xor eax, eax
mov dword [ebp - 0x1cc], 0
push str.No_update_available.
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 7
mov word [ebp - 0x1cc], ax
call fcn.00408400
mov byte [ebp - 4], 0xa
mov ecx, dword [0x51b37c]
push str.progressText
add ecx, 0x14
call fcn.00468716
mov edx, eax
test edx, edx
je 0x4049ec
cmp dword [ebp - 0x1b8], 8
lea ecx, [ebp - 0x1cc]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x1cc]
push ecx
mov ecx, edx
call dword [eax + 0x3c]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1b8]
cmp edx, 8
jb 0x404a30
mov ecx, dword [ebp - 0x1cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b73
push edx
push ecx
call fcn.004b9340
add esp, 8
mov dl, 1
call fcn.00402fc0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x404a6b
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404a61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b78
push edx
push ecx
call fcn.004b9340
add esp, 8
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x404ab1
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404aa7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b78
push edx
push ecx
call fcn.004b9340
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x404af7
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404aed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b78
push edx
push ecx
call fcn.004b9340
add esp, 8
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1b0]
call fcn.0046f45f
mov eax, esi
jmp 0x404b30
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00469135
test al, al
je 0x404b22
mov eax, dword [ebp - 0x14]
jmp 0x404b30
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push edi
call fcn.00470338
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b90ac
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c93ba
call fcn.004c93ba
push 1
call fcn.004a31bb
push eax
call fcn.004a318e
push 6
mov dword [ebp - 0x4c], 0
call fcn.004a31bb
call fcn.004c93ba
call fcn.004c93ba
int3