Function at 0x405840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c8b7
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5b5450]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00409e80
mov dword [ebx], eax
mov dword [ebp - 4], 0
push 0
push 0x592608
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
call fcn.004023c0
push ecx
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.http:__update.pg.163.com_patch_list1.web
call fcn.00402c90
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1ac], esp
push str.MCrcURL
call fcn.00402c90
push ecx
mov ecx, esp
push 0x5bd48c
mov byte [ebp - 4], 3
call fcn.00402fc0
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 1
call fcn.00405270
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1a4]
cmp dword [eax - 0xc], 0
je 0x405dee
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 7
cmp dword [eax - 4], 1
jle 0x40599e
push dword [eax - 0xc]
lea ecx, [ebp - 0x1a4]
call fcn.00403140
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [eax], 0
jne 0x4059b9
xor edx, edx
jmp 0x4059c9
mov edx, eax
lea esi, [edx + 1]
mov edi, edi
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4059c0
sub edx, esi
push edx
push eax
lea ecx, [ebp - 0x34]
call fcn.004023c0
mov byte [ebp - 4], 8
xor esi, esi
mov dword [ebp - 0x1b8], 0x19
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], 0x56
mov dword [ebp - 0x1ac], esi
lea esp, [esp]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x34]
call fcn.004056c0
movsx eax, word [ebp - 0x1a0]
push eax
push 0x5925e4
lea eax, [ebp - 0x1c]
push 8
push eax
call fcn.0052d9a1
add esp, 0x18
cmp byte [ebp - 0x1c], 0
jne 0x405a3e
xor ecx, ecx
jmp 0x405a4d
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a44
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023c0
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x194]
call fcn.0040c8f0
mov dword [ebp - method.NetModel::CommHttp.virtual_0], vtable.NetModel::CommHttp.0
mov byte [ebp - 4], 9
push 4
push str.GET
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
call fcn.004023c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.00403f60
push 0x11
push str._HTTP_1.1_r_nHost:
lea ecx, [ebp - 0x7c]
call fcn.00403e30
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00403f60
push 0x2e
push str._r_nAccept_Encoding:_gzip_r_nConnection:_Close_r_n_r_n
lea ecx, [ebp - 0x7c]
call fcn.00403e30
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x148]
call fcn.00402540
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x194]
call dword [eax]
cmp dword [ebp - 0x118], 0xffffffff
je 0x405b83
mov ecx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x14c]
test ecx, ecx
jne 0x405b2d
test eax, eax
je 0x405b39
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x194]
call dword [eax + 4]
cmp dword [ebp - 0x118], 0xffffffff
je 0x405b83
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x194]
call dword [eax + 8]
cmp dword [ebp - 0x118], 0xffffffff
je 0x405b83
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x194]
call dword [eax + 0xc]
lea ecx, [ebp - 0x194]
call fcn.0040c870
cmp byte [ebp - 0xfc], 0
jne 0x405c75
cmp esi, 3
je 0x405be0
cmp dword [ebp - 0x68], 0x10
jb 0x405ba6
push dword [ebp - 0x7c]
call fcn.00418340
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
mov dword [ebp - method.NetModel::CommHttp.virtual_0], vtable.NetModel::CommHttp.0
call fcn.0040ca20
inc esi
cmp esi, 3
jle 0x405a00
jmp 0x405d5b
call fcn.004186bc
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x405bfc
push 0x80004005
call fcn.00403490
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0xb
call fcn.00404ab0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x405c2c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1a8]
push 0x591e74
push eax
call fcn.004030c0
add esp, 0xc
cmp dword [ebp - 0xb0], 0x10
jb 0x405c58
push dword [ebp - 0xc4]
call fcn.00418340
add esp, 4
push 0x10
push 0x591ea8
push dword [ebp - 0x1a8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x194]
call fcn.0040cb00
mov esi, eax
lea eax, [ebp - 0x94]
cmp eax, esi
je 0x405d0c
cmp dword [ebp - 0x80], 0x10
jb 0x405ca7
push dword [ebp - 0x94]
call fcn.00418340
add esp, 4
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
cmp dword [esi + 0x14], 0x10
jae 0x405cde
mov eax, dword [esi + 0x10]
inc eax
je 0x405cec
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0052c370
add esp, 0xc
jmp 0x405cec
mov eax, dword [esi]
mov dword [ebp - 0x94], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x80], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0xb0], 0x10
jb 0x405d23
push dword [ebp - 0xc4]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0x68], 0x10
jb 0x405d34
push dword [ebp - 0x7c]
call fcn.00418340
add esp, 4
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
mov dword [ebp - method.NetModel::CommHttp.virtual_0], vtable.NetModel::CommHttp.0
call fcn.0040ca20
cmp dword [ebp - 0x20], 0x10
jb 0x405d6c
push dword [ebp - 0x34]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0x98], 0x10
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x405d95
push dword [ebp - 0xac]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
jb 0x405dc1
push dword [ebp - 0x4c]
call fcn.00418340
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
jb 0x405de8
push dword [ebp - 0x64]
call fcn.00418340
add esp, 4
mov eax, dword [ebp - 0x1a4]
xor ecx, ecx
cmp dword [ebp - 0x84], ecx
setne cl
test ecx, ecx
sete cl
test cl, cl
sete cl
test cl, cl
je 0x406319
cmp dword [0x5bd45c], 0
je 0x405ea9
push 0x591eb0
lea ecx, [ebp - 0x1a0]
call fcn.00402c90
push 0
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x1a0]
push 0
mov ebx, dword [esi - 0xc]
push ebx
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0
mov dword [ebp - 0x1ac], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x405fe3
push dword [ebp - 0x1ac]
push edi
push ebx
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push edi
push 0x84c
push dword [0x5bd45c]
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1a0]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405ea9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
sub esp, 8
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0xe
call fcn.004084c0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x19c]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x190], edi
jne 0x4060ec
mov byte [ebp - 0x1a0], 0x2f
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0x13
call fcn.0040a050
lea edx, [ebp - 0xc4]
mov ecx, eax
call fcn.0040a050
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.0040a050
lea edx, [ebp - 0xac]
mov ecx, eax
call fcn.0040a050
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x64]
call fcn.00408f50
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00407e00
mov esi, eax
mov byte [ebp - 4], 0x14
cmp esi, edi
jae 0x405fe8
cmp ebx, esi
ja 0x405fe8
sub esi, ebx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebp - 0x20]
jne 0x405fdb
push ecx
lea ecx, [ebp - 0x28]
call fcn.004092e0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
lea eax, [esi + esi*2]
lea esi, [ebx + eax*8]
jmp 0x405ff9
call fcn.00403380
cmp edi, dword [ebp - 0x20]
jne 0x405ff9
push ecx
lea ecx, [ebp - 0x28]
call fcn.004092e0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x40604e
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
jae 0x406027
mov eax, dword [esi + 0x10]
inc eax
je 0x406031
push eax
push esi
push edi
call fcn.0052c370
add esp, 0xc
jmp 0x406031
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add edi, 0x18
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0xc8], 0x10
mov dword [ebp - 0x24], edi
jb 0x40606f
push dword [ebp - 0xdc]
call fcn.00418340
add esp, 4
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004083f0
cmp dword [ebp - 0x98], 0x10
jb 0x406092
push dword [ebp - 0xac]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0x38], 0x10
jb 0x4060a3
push dword [ebp - 0x4c]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0xb0], 0x10
jb 0x4060ba
push dword [ebp - 0xc4]
call fcn.00418340
add esp, 4
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x50], 0x10
jb 0x4060cf
push dword [ebp - 0x64]
call fcn.00418340
add esp, 4
mov eax, dword [ebp - 0x19c]
mov edi, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov ebx, dword [ebp - 0x28]
cmp dword [ebp + eax - 0x190], 0
je 0x405ef0
mov byte [ebp - 0x19d], 1
mov esi, ebx
cmp ebx, edi
je 0x4062ee
lea ecx, [ecx]
push 5
push ecx
push str.patch
mov ecx, esi
call fcn.00408e60
cmp eax, 0xffffffff
je 0x4062e3
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00402540
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00402c90
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 0x16
call fcn.004055b0
movzx eax, ax
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x1ac]
add edx, 0xfffffff0
mov dword [ebp - 0x18], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40618b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
cmp cx, ax
jbe 0x4061b8
cmp byte [ebp - 0x19d], 0
je 0x4061b8
movzx eax, ax
movzx ecx, cx
xor dl, dl
sub ecx, eax
mov byte [ebp - 0x19d], dl
cmp ecx, 1
jne 0x406369
add esi, 0x18
cmp esi, edi
je 0x4062ce
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.00402540
push 0xffffffffffffffff
mov byte [ebp - 4], 0x17
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
call fcn.00402540
push 0xffffffffffffffff
mov byte [ebp - 4], 0x18
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xc8], 0xf
mov dword [ebp - 0xcc], 0
mov byte [ebp - 0xdc], 0
call fcn.00402540
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x1a8]
push eax
call fcn.0040a260
push eax
add eax, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1b8]
push eax
call fcn.0040a290
cmp dword [ebp - 0xc8], 0x10
jb 0x40628b
push dword [ebp - 0xdc]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0xe0], 0x10
mov dword [ebp - 0xc8], 0xf
mov dword [ebp - 0xcc], 0
mov byte [ebp - 0xdc], 0
jb 0x4062bd
push dword [ebp - 0xf4]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0x50], 0x10
jb 0x4062ce
push dword [ebp - 0x64]
call fcn.00418340
add esp, 4
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x38], 0x10
jb 0x4062e3
push dword [ebp - 0x4c]
call fcn.00418340
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x406100
lea ecx, [ebp - 0x19c]
call fcn.004063c0
test ebx, ebx
je 0x40630d
push edi
push ebx
call fcn.00409750
push ebx
call fcn.00418340
add esp, 4
mov ebx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 0x1a4]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406337
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x80], 0x10
jb 0x40634b
push dword [ebp - 0x94]
call fcn.00418340
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052c359
mov esp, ebp
pop ebp
ret
push 0x40
push 0x591ea8
push 0x591ecc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]