Function at 0x5156b0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b18b
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x5d1e24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x530], eax
lea ecx, [ebp - 0x47c]
xor edi, edi
push ecx
mov ecx, eax
mov dword [ebp - 0x550], edi
xor esi, esi
call fcn.00517420
mov dword [ebp - 4], esi
cmp dword [ebp - 0x46c], esi
jne 0x51574c
mov edx, dword [ebp - 0x468]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x515881
mov ecx, dword [ebp - 0x47c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x515877
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5168fc
jmp 0x515877
xorps xmm0, xmm0
lea ecx, [ebp - 0x44c]
movups xmmword [ebp - 0x44c], xmm0
movq qword [ebp - 0x43c], xmm0
call fcn.00522d00
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44c]
call fcn.005237a0
test al, al
jne 0x5157d2
lea ecx, [ebp - 0x44c]
call fcn.005205e0
mov edx, dword [ebp - 0x468]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x515881
mov ecx, dword [ebp - 0x47c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x515877
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
jmp 0x515877
push 0xc
push str.CheckFailCnt
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.00409600
push 0
lea eax, [ebp - 0x528]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x44c]
call fcn.00523160
mov edx, dword [ebp - 0x514]
mov esi, eax
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x515857
mov ecx, dword [ebp - 0x528]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51584d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516906
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
jmp 0x515783
push edx
push ecx
call fcn.0046c7d5
add esp, 8
cmp esi, dword [0x5d6c10]
jge 0x515ac3
mov ecx, dword [0x5de110]
test ecx, ecx
jne 0x515902
push 0x5d6bec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5de110], 0
jne 0x5158f1
push 4
call fcn.0046c7a5
mov esi, eax
add esp, 4
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x5158d7
mov ecx, esi
mov dword [esi], 0
call fcn.005255a0
jmp 0x5158d9
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x424]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x5de110], esi
push 0x5d6bec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5de110]
push 0
push str.update_sign_url
lea eax, [ebp - 0x54c]
push eax
call fcn.005265c0
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 4
jb 0x515926
mov esi, dword [esi]
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x51690b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x534], eax
push esi
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 5
call fcn.00406080
test al, al
jne 0x515982
test esi, esi
jne 0x515961
xor ecx, ecx
jmp 0x515975
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x515966
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x534]
call fcn.004079f0
mov edx, dword [ebp - 0x538]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x5159c6
mov ecx, dword [ebp - 0x54c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5159bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov edi, dword [ebp - 0x534]
cmp dword [edi - 0xc], 0
je 0x515aa2
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0054f9f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push edi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x515aa2
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0xf
mov byte [ebp - 0x464], 0
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00524900
add esp, 8
test eax, eax
jne 0x515aeb
mov edx, dword [ebp - 0x450]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x515a87
mov ecx, dword [ebp - 0x464]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x515a7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0xf
mov byte [ebp - 0x464], 0
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x515ac1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov ecx, dword [ebp - 0x530]
call fcn.00517870
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ca7d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x5d6c14]
lea ecx, [ebp - 0x424]
call fcn.00411e30
cmp dword [ebp - 0x450], 0x10
lea eax, [ebp - 0x464]
push 0xfde9
cmovae eax, dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x54c]
mov byte [ebp - 4], 9
push eax
call fcn.004693a0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xa
jb 0x515b42
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x428]
call fcn.00411e30
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.004689d0
push 0xfde9
push dword [eax]
lea eax, [ebp - 0x50c]
mov byte [ebp - 4], 0xc
push eax
call fcn.00469260
add esp, 0x18
mov edx, dword [ebp - 0x510]
or esi, 0xffffffff
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x515baa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, esi
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x515bcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x54c]
call fcn.00405050
mov edx, dword [ebp - 0x424]
mov eax, esi
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x515bf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x4fc], 0
je 0x515c42
xorps xmm0, xmm0
lea ecx, [ebp - 0x4dc]
movups xmmword [ebp - 0x4dc], xmm0
movq qword [ebp - 0x4cc], xmm0
call fcn.00522d00
lea eax, [ebp - 0x50c]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x4dc]
call fcn.005237a0
test al, al
jne 0x515c6f
lea ecx, [ebp - 0x4dc]
call fcn.005205e0
lea ecx, [ebp - 0x50c]
call fcn.00405000
lea ecx, [ebp - 0x464]
call fcn.00405000
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jmp 0x515ab7
xorps xmm0, xmm0
mov dword [ebp - 0x42c], 0
movq qword [ebp - 0x434], xmm0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0xf
mov byte [ebp - 0x4c4], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0xf
mov byte [ebp - 0x4ac], 0
push 0
push 0x5907a8
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0xf
mov byte [ebp - 0x494], 0
call fcn.00409600
push 5
push str.CSVer
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
call fcn.00409600
lea eax, [ebp - 0x494]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.005235a0
mov esi, eax
lea eax, [ebp - 0x4c4]
cmp eax, esi
je 0x515d99
mov ecx, eax
call fcn.00405000
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x4c4], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x4b4], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x54c]
call fcn.00405000
lea ecx, [ebp - 0x44c]
call fcn.00405000
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 0x15
call fcn.00405000
push 6
push str.CSList
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
call fcn.00409600
lea eax, [ebp - 0x44c]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x4dc]
call fcn.00522f60
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x15
call fcn.00405000
xorps xmm0, xmm0
mov dword [ebp - 0x46c], 0
push 6
push str.CSList
lea ecx, [ebp - 0x47c]
movq qword [ebp - 0x4e4], xmm0
movups xmmword [ebp - 0x4f4], xmm0
mov dword [ebp - 0x468], 0xf
mov byte [ebp - 0x47c], 0
call fcn.00409600
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.005236e0
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 0x1b
call fcn.00405000
push 0
push 0x5907a8
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
call fcn.00409600
lea eax, [ebp - 0x44c]
mov byte [ebp - 4], 0x1c
push eax
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x4f4]
call fcn.00523970
mov esi, eax
lea eax, [ebp - 0x4ac]
cmp eax, esi
je 0x515f06
mov ecx, eax
call fcn.00405000
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x4ac], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x49c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x54c]
call fcn.00405000
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 0x1b
call fcn.00405000
xor esi, esi
cmp dword [ebp - 0x428], esi
jle 0x516075
nop
lea eax, [ebp - 0x44c]
push eax
push esi
lea ecx, [ebp - 0x4f4]
call fcn.00522e40
mov ecx, eax
call fcn.00521730
cmp dword [ebp - 0x438], 0x10
lea eax, [ebp - 0x44c]
push 0xfde9
cmovae eax, dword [ebp - 0x44c]
push eax
lea eax, [ebp - 0x54c]
mov byte [ebp - 4], 0x1d
push eax
call fcn.004693a0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x1e
jb 0x515f83
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x510]
call fcn.00411e30
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 0x1f
push ecx
cmp dword [ebp - 0x42c], eax
je 0x515fb8
mov ecx, eax
call fcn.005149d0
add dword [ebp - 0x430], 4
jmp 0x515fc4
push eax
lea ecx, [ebp - 0x434]
call fcn.00515370
mov edx, dword [ebp - 0x510]
or eax, 0xffffffff
mov byte [ebp - 4], 0x1e
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x515fe6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x538]
mov byte [ebp - 4], 0x1d
cmp edx, 8
jb 0x51602a
mov ecx, dword [ebp - 0x54c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x516020
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5168fc
push edx
push ecx
call fcn.0046c7d5
add esp, 8
mov edx, dword [ebp - 0x438]
mov byte [ebp - 4], 0x1b
cmp edx, 0x10
jb 0x516068
mov ecx, dword [ebp - 0x44c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51605e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5168fc
push edx
push ecx
call fcn.0046c7d5
add esp, 8
inc esi
cmp esi, dword [ebp - 0x428]
jl 0x515f30
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x52c], ecx
cmp eax, ecx
je 0x516166
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x510], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x5160be
cmp ecx, dword [esi]
jne 0x5160be
lock inc dword [eax]
jmp 0x5160ff
mov eax, dword [ecx]
lea edx, [esi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x424], edx
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x5168f7
mov ecx, dword [ebp - 0x424]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx]
inc eax
add eax, eax
push eax
push dword [ebp - 0x510]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0040b3c0
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x554], esi
mov eax, dword [ebp - 0x530]
mov byte [ebp - 4], 0x20
mov eax, dword [eax + 4]
test eax, eax
je 0x51690b
push eax
push esi
call fcn.005532cd
add esp, 8
test eax, eax
je 0x516236
mov byte [ebp - 4], 0x1b
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51614b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x428]
add eax, 4
mov dword [ebp - 0x428], eax
cmp eax, dword [ebp - 0x52c]
jne 0x516095
or esi, 0xffffffff
lea ecx, [ebp - 0x4f4]
call fcn.005205e0
lea ecx, [ebp - 0x4ac]
call fcn.00405000
lea ecx, [ebp - 0x4c4]
call fcn.00405000
mov eax, dword [ebp - 0x434]
mov byte [ebp - 4], 0x35
test eax, eax
je 0x5161e6
push dword [ebp - 0x430]
lea ecx, [ebp - 0x434]
push eax
call fcn.00517bd0
mov ecx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x434]
sub ecx, eax
sar ecx, 2
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.004290c0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x4dc]
call fcn.005205e0
lea ecx, [ebp - 0x50c]
call fcn.00405000
lea ecx, [ebp - 0x464]
call fcn.00405000
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x516223
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x550]
test edi, edi
jne 0x515ace
jmp 0x515ac3
xorps xmm0, xmm0
mov dword [ebp - 0x550], 1
lea ecx, [ebp - 0x494]
movq qword [ebp - 0x484], xmm0
movups xmmword [ebp - 0x494], xmm0
call fcn.00522d00
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 0x21
push eax
lea ecx, [ebp - 0x54c]
call fcn.0051fff0
push 5
push str.CSVer
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.00409600
lea eax, [ebp - 0x54c]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x494]
call fcn.00522e30
mov ecx, eax
call fcn.00520650
mov edx, dword [ebp - 0x514]
mov byte [ebp - 4], 0x22
cmp edx, 0x10
jb 0x516306
mov ecx, dword [ebp - 0x528]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5162fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
mov byte [ebp - 4], 0x21
call fcn.005205e0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x54c]
call fcn.0051fff0
push 6
push str.CSList
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0x24
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.00409600
lea eax, [ebp - 0x54c]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x494]
call fcn.00522e30
mov ecx, eax
call fcn.00520650
mov edx, dword [ebp - 0x514]
mov byte [ebp - 4], 0x24
cmp edx, 0x10
jb 0x5163d5
mov ecx, dword [ebp - 0x528]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5163cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
mov byte [ebp - 4], 0x21
call fcn.005205e0
push 0
lea ecx, [ebp - 0x44c]
call fcn.00520060
push 0xc
push str.CheckFailCnt
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
call fcn.00409600
lea eax, [ebp - 0x44c]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x494]
call fcn.00522e30
mov ecx, eax
call fcn.00520650
mov edx, dword [ebp - 0x514]
mov byte [ebp - 4], 0x26
cmp edx, 0x10
jb 0x51649f
mov ecx, dword [ebp - 0x528]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x516495
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0xf
mov byte [ebp - 0x528], 0
mov byte [ebp - 4], 0x21
call fcn.005205e0
mov eax, dword [str.45476F8083D74AC28A2DA8ED399737B7]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], eax
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x516915
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x510], eax
push dword [ebp - 0x424]
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 0x28
call fcn.00406080
test al, al
jne 0x516550
mov edx, dword [ebp - 0x424]
test edx, edx
jne 0x516524
xor ecx, ecx
jmp 0x516543
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x424], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x516530
sub ecx, dword [ebp - 0x424]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x510]
call fcn.004079f0
cmp dword [ebp - 0x498], 0x10
lea eax, [ebp - 0x4ac]
push 0xfde9
cmovae eax, dword [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x54c]
mov byte [ebp - 4], 0x29
push eax
call fcn.004693a0
add esp, 0xc
mov dword [ebp - 0x424], eax
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x2a
jb 0x516595
mov eax, dword [eax]
mov dword [ebp - 0x424], eax
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x51691f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x52c], eax
push dword [ebp - 0x424]
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x2b
call fcn.00406080
test al, al
jne 0x516606
mov edx, dword [ebp - 0x424]
test edx, edx
jne 0x5165db
xor ecx, ecx
jmp 0x5165f9
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x424], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5165e6
sub ecx, dword [ebp - 0x424]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x52c]
call fcn.004079f0
lea eax, [ebp - 0x510]
mov byte [ebp - 4], 0x2c
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00468e90
add esp, 0xc
mov edx, dword [ebp - 0x52c]
or eax, 0xffffffff
mov byte [ebp - 4], 0x2e
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x516649
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x538]
mov byte [ebp - 4], 0x2f
cmp edx, 8
jb 0x51668d
mov ecx, dword [ebp - 0x54c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x516683
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
xor eax, eax
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 7
mov word [ebp - 0x54c], ax
mov edx, dword [ebp - 0x510]
or eax, 0xffffffff
mov byte [ebp - 4], 0x30
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5166cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x5907a8
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
call fcn.00409600
sub esp, 0x18
mov byte [ebp - 4], 0x31
mov eax, esp
lea ecx, [ebp - 0x44c]
push ecx
push eax
lea ecx, [ebp - 0x494]
call fcn.00523970
mov ecx, dword [ebp - 0x530]
call fcn.00517b10
mov edx, dword [ebp - 0x438]
mov byte [ebp - 4], 0x30
cmp edx, 0x10
jb 0x51675e
mov ecx, dword [ebp - 0x44c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x516754
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x516901
push edx
push ecx
call fcn.0046c7d5
add esp, 8
cmp dword [ebp - 0x4b0], 0x10
lea eax, [ebp - 0x4c4]
push 0xfde9
cmovae eax, dword [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.004693a0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x32
jb 0x516793
mov eax, dword [eax]
push eax
push 0x5aa814
push ecx
mov dword [ebp - 0x424], esp
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x516929
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x424]
add eax, 0x10
mov dword [ecx], eax
push str.SOFTWAREComMaster
mov byte [ebp - 4], 0x33
call fcn.00406080
test al, al
jne 0x5167e5
mov ecx, dword [ebp - 0x424]
push 0x12
push str.SOFTWAREComMaster
call fcn.004079f0
mov ecx, dword [ebp - 0x530]
push 0x80000002
mov byte [ebp - 4], 0x32
call fcn.005177b0
mov eax, dword [ebp - 0x514]
mov byte [ebp - 4], 0x30
cmp eax, 8
jb 0x51681b
inc eax
lea ecx, [ebp - 0x528]
push eax
push dword [ebp - 0x528]
call fcn.004098a0
push dword [ebp - 0x428]
xor eax, eax
mov dword [ebp - 0x518], 0
push 0x5aa820
push ecx
mov dword [ebp - 0x514], 7
mov word [ebp - 0x528], ax
mov dword [ebp - 0x424], esp
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x516933
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x424]
add eax, 0x10
mov dword [ecx], eax
push str.SOFTWAREComMaster
mov byte [ebp - 4], 0x34
call fcn.00406080
test al, al
jne 0x51688f
mov ecx, dword [ebp - 0x424]
push 0x12
push str.SOFTWAREComMaster
call fcn.004079f0
mov ecx, dword [ebp - 0x530]
push 0x80000002
mov byte [ebp - 4], 0x30
call fcn.005177b0
mov edx, dword [ebp - 0x428]
or eax, 0xffffffff
mov byte [ebp - 4], 0x21
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5168c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x494]
call fcn.005205e0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0x1b
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x516169
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x516169
call fcn.00407b20
call fcn.0055306a
call fcn.0055306a
call fcn.0055306a
push 0x80004005
call fcn.00406060
push 0x80004005
call fcn.00406060
push 0x80004005
call fcn.00406060
push 0x80004005
call fcn.00406060
push 0x80004005
call fcn.00406060
int3