Function at 0x1001b7d0
Capabilities:
Create http request
Read .ini file
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1e98
mov eax, dword fs:[0]
push eax
sub esp, 0x70c
mov eax, dword [0x1011449c]
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 dword [ebp - 0x6fc], ecx
mov dword [ebp - 0x704], 0
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001cc22
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x70c], edi
mov ecx, dword [0x10117de0]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x1001b896
push 0x10113db8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10117de0], 0
jne 0x1001b885
push 4
call fcn.100806a5
mov esi, eax
add esp, 4
mov dword [ebp - 0x700], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1001b873
mov ecx, esi
call fcn.10066190
jmp 0x1001b875
xor esi, esi
mov byte [ebp - 4], 0
xchg dword [ebp - 0x718], eax
mov dword [0x10117de0], esi
push 0x10113db8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x10117de0]
lea eax, [ebp - 0x694]
push eax
call fcn.10069830
mov byte [ebp - 4], 2
call fcn.1000aae0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x38]
xor ecx, ecx
mov dword [ebp - 0x6f8], ecx
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x30c30c31
sub ecx, ebx
mov dword [ebp - 0x700], ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x708], eax
je 0x1001b9a2
xor eax, eax
nop word [eax + eax]
cmp dword [ebp - 0x680], 8
lea ecx, [ebp - 0x694]
mov esi, ebx
cmovae ecx, dword [ebp - 0x694]
cmp dword [ebx + 0x14], 8
jb 0x1001b90e
mov esi, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebp - 0x684]
jne 0x1001b95c
test edx, edx
je 0x1001b931
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x1001b956
add ecx, 2
sub edx, 1
jne 0x1001b920
imul eax, dword [ebp - 0x6f8], 0xa8
mov edx, dword [ebp - 0x700]
add edx, 0x78
add edx, eax
cmp dword [edx + 0x14], 8
jb 0x1001b94e
mov edx, dword [edx]
test edx, edx
jne 0x1001b977
xor ecx, ecx
jmp 0x1001b98f
mov eax, dword [ebp - 0x6f8]
inc eax
add ebx, 0xa8
mov dword [ebp - 0x6f8], eax
cmp eax, dword [ebp - 0x708]
jb 0x1001b8f0
jmp 0x1001b9a2
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b980
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70c]
call fcn.100046c0
mov edi, dword [ebp - 0x70c]
lea eax, [ebp - 0x64c]
push eax
call fcn.10051ed0
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 3
jb 0x1001b9bf
mov esi, dword [esi]
test esi, esi
jne 0x1001b9c7
xor ecx, ecx
jmp 0x1001b9df
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b9d0
sub ecx, edx
sar ecx, 1
mov ebx, dword [edi - 0xc]
mov eax, esi
sub eax, edi
mov dword [ebp - 0x708], ebx
sar eax, 1
mov dword [ebp - 0x700], eax
test ecx, ecx
js 0x1001cc2c
test esi, esi
jne 0x1001ba0a
xor edx, edx
mov dword [ebp - 0x6f8], edx
jmp 0x1001ba1c
push ecx
push esi
call fcn.100ab2e6
add esp, 8
mov dword [ebp - 0x6f8], eax
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
cmp ecx, ebx
jl 0x1001cc36
add ebx, edx
js 0x1001cc40
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x1001ba5c
push ebx
lea ecx, [ebp - 0x70c]
call fcn.10004620
mov edi, dword [ebp - 0x70c]
mov edx, dword [ebp - 0x6f8]
mov eax, dword [ebp - 0x700]
mov ecx, dword [ebp - 0x708]
cmp eax, ecx
ja 0x1001ba6f
lea esi, [edi + eax*2]
lea eax, [edx + edx]
push eax
push esi
push eax
lea eax, [edi + ecx*2]
push eax
call fcn.10004a40
add esp, 0x10
cmp ebx, dword [edi - 8]
jg 0x1001cc2c
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
mov edx, dword [ebp - 0x638]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x1001bad7
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001bacd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc4a
push edx
push ecx
call fcn.10080302
add esp, 8
call fcn.1005f9c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
mov ebx, 0xffffffff
sub eax, 1
jne 0x1001bd1d
push 0x6c
push str.d:jenkins.jenkinsworkspacelib_commoncomputerz12_grab_versionhookhomepage_1145configgrapurlconfig.cpp
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
call fcn.100058c0
push 3
push 0x100e21cc
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 4
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
call fcn.100058c0
mov byte [ebp - 4], 5
call fcn.1005f9c0
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov dword [ebp - 0x708], eax
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1001bb84
cmp ecx, dword [esi]
jne 0x1001bb84
lock inc dword [eax]
jmp 0x1001bbc2
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x700], edx
test edx, edx
je 0x1001cc4f
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
inc eax
lea ecx, [eax + eax]
push ecx
lea eax, [esi + 0x10]
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.10004a40
mov esi, dword [ebp - 0x700]
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x700], esi
push esi
push str.QuerySwitch_url:_s
lea eax, [ebp - 0x6f8]
mov byte [ebp - 4], 7
push 1
push eax
call fcn.1005f5e0
add esp, 0x10
mov dword [ebp - 0x700], eax
mov dword [ebp - 0x704], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 6
mov ecx, ebx
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001bc11
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1c
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.10008480
mov esi, eax
mov ecx, dword [ebp - 0x700]
mov edx, 0x100e1fb4
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.10006ea0
mov ecx, dword [ebp - 0x708]
add esp, 8
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2b4]
call fcn.10009f10
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001bc86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x620]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x1001bcc4
mov ecx, dword [ebp - 0x634]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001bcba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc54
push edx
push ecx
call fcn.10080302
add esp, 8
mov edx, dword [ebp - 0x638]
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1001bd1d
mov ecx, dword [ebp - 0x64c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001bd13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc59
push edx
push ecx
call fcn.10080302
add esp, 8
push 0
push 0x100e1de0
lea ecx, [ebp - 0x67c]
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x668], 0xf
mov byte [ebp - 0x67c], 0
call fcn.100058c0
push 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 9
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x704], eax
test eax, eax
je 0x1001be2d
push 0
push 0x84000000
push 0
push 0
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x1001be21
mov dword [ebp - 0x6f8], 0
push 0x401
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.100a6fe0
add esp, 0xc
lea eax, [ebp - 0x6f8]
push eax
push 0x400
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
mov eax, dword [ebp - 0x6f8]
je 0x1001be12
test eax, eax
je 0x1001be1a
cmp eax, 0x401
jae 0x1001cc63
lea ecx, [ebp - 0x61c]
mov byte [ebp + eax - 0x61c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001bdf0
sub ecx, edx
lea eax, [ebp - 0x61c]
push ecx
push eax
lea ecx, [ebp - 0x67c]
call fcn.100048d0
mov eax, dword [ebp - 0x6f8]
test eax, eax
jne 0x1001bd93
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x704]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x66c], 0
jne 0x1001bef9
mov edx, dword [ebp - 0x668]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1001be78
mov ecx, dword [ebp - 0x67c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001be6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc5e
push edx
push ecx
call fcn.10080302
add esp, 8
mov edx, dword [ebp - 0x680]
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x668], 0xf
mov byte [ebp - 0x67c], 0
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x1001bed7
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001becd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc68
push edx
push ecx
call fcn.10080302
add esp, 8
xor eax, eax
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x680], 7
mov word [ebp - 0x694], ax
jmp 0x1001cbea
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001cc6d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6f8], eax
push str.grapconfig
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0xa
call fcn.10004280
test al, al
jne 0x1001bf40
push 0xa
push str.grapconfig
lea ecx, [ebp - 0x6f8]
call fcn.100046c0
mov byte [ebp - 4], 0xb
call fcn.1000aae0
mov esi, eax
lea eax, [ebp - 0x704]
push eax
call fcn.10053a90
add esp, 4
mov edx, dword [esi]
mov ecx, esi
push eax
lea eax, [ebp - 0x6f8]
mov byte [ebp - 4], 0xc
push eax
call dword [edx + 0x14]
mov edx, dword [ebp - 0x704]
mov eax, ebx
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001bf8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001bfaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 0xf
mov byte [ebp - 0x6ac], 0
push 0x26
push 0x100e2af8
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
call fcn.100058c0
lea eax, [ebp - 0x6ac]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x67c]
push eax
call fcn.100051f0
mov edx, dword [ebp - 0x638]
add esp, 0xc
mov byte [ebp - 4], 0xd
mov esi, eax
cmp edx, 0x10
jb 0x1001c05c
mov ecx, dword [ebp - 0x64c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c052
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc77
push edx
push ecx
call fcn.10080302
add esp, 8
test esi, esi
jne 0x1001c0fe
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x1001c0a2
mov ecx, dword [ebp - 0x6ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c098
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc7c
push edx
push ecx
call fcn.10080302
add esp, 8
mov edx, dword [ebp - 0x668]
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 0xf
mov byte [ebp - 0x6ac], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1001be78
mov ecx, dword [ebp - 0x67c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001be6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc81
jmp 0x1001be6e
cmp dword [ebp - 0x698], 0x10
lea eax, [ebp - 0x6ac]
cmovae eax, dword [ebp - 0x6ac]
push eax
call fcn.1006c210
mov esi, eax
add esp, 4
mov dword [ebp - 0x700], esi
mov byte [ebp - 4], 0xf
test esi, esi
jne 0x1001c16c
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x1001c0a2
mov ecx, dword [ebp - 0x6ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c098
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001cc86
jmp 0x1001c098
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001cc8b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6f8], eax
push str.grap_url
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0x10
call fcn.10004280
test al, al
jne 0x1001c1b3
push 8
push str.grap_url
lea ecx, [ebp - 0x6f8]
call fcn.100046c0
mov ecx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6f8]
push 0
push eax
push 0x100e2ca0
push esi
mov byte [ebp - 4], 0x11
call fcn.1001cce0
mov edx, dword [ebp - 0x6f8]
mov ecx, ebx
mov dword [ebp - 0x704], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001c1fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x1001c312
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001cc95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6f8], eax
push str.grap_chnl
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0x12
call fcn.10004280
test al, al
jne 0x1001c24d
push 9
push str.grap_chnl
lea ecx, [ebp - 0x6f8]
call fcn.100046c0
mov ecx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6f8]
push 1
push eax
push str.chnl
push esi
mov byte [ebp - 4], 0x13
call fcn.1001cce0
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c28c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001cc9f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6f8], eax
push str.grap_stat
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0x14
call fcn.10004280
test al, al
jne 0x1001c2d3
push 9
push str.grap_stat
lea ecx, [ebp - 0x6f8]
call fcn.100046c0
mov ecx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6f8]
push 1
push eax
push str.stat
push esi
mov byte [ebp - 4], 0x15
call fcn.1001cce0
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c312
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a6fe0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10118344]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.ComputerZ.set
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push 0x100e30ec
push str.three_end
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
jne 0x1001c3c2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
push 0x100e30ec
push str.three_end
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x1001c502
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001cca9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6f8], eax
push str.grap_url
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0x16
call fcn.10004280
test al, al
jne 0x1001c411
push 8
push str.grap_url
lea ecx, [ebp - 0x6f8]
call fcn.100046c0
mov ecx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6f8]
push 0
push eax
push str.turl
push esi
mov byte [ebp - 4], 0x17
call fcn.1001cce0
mov edx, dword [ebp - 0x6f8]
mov ecx, ebx
mov dword [ebp - 0x704], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001c45c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x704]
test eax, eax
je 0x1001c502
push str.grap_chnl
lea ecx, [ebp - 0x6f8]
call fcn.10003e80
mov ecx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6f8]
push 1
push eax
push str.tchnl
push esi
mov byte [ebp - 4], 0x18
call fcn.1001cce0
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c4b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.grap_stat
lea ecx, [ebp - 0x6f8]
call fcn.10003e80
mov ecx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x6f8]
push 1
push eax
push str.stat
push esi
mov byte [ebp - 4], 0x19
call fcn.1001cce0
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c502
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x100e1de0
lea ecx, [ebp - 0x664]
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0xf
mov byte [ebp - 0x664], 0
call fcn.100058c0
push 8
push str.grap_off
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
call fcn.100058c0
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x6f4]
push esi
push eax
call fcn.1006ca50
add esp, 0x10
mov edx, dword [ebp - 0x620]
mov byte [ebp - 4], 0x1d
cmp edx, 0x10
jb 0x1001c5c0
mov ecx, dword [ebp - 0x634]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c5b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ccb3
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
mov edx, dword [ebp - 0x650]
mov byte [ebp - 4], 0x1e
cmp edx, 0x10
jb 0x1001c619
mov ecx, dword [ebp - 0x664]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c60f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ccb8
push edx
push ecx
call fcn.10080302
add esp, 8
push 0
push 0x100e1de0
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0xf
mov byte [ebp - 0x664], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
call fcn.100058c0
push 7
push str.grap_on
lea ecx, [ebp - 0x6c4]
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x6b4], 0
mov dword [ebp - 0x6b0], 0xf
mov byte [ebp - 0x6c4], 0
call fcn.100058c0
lea eax, [ebp - 0x64c]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x6dc]
push esi
push eax
call fcn.1006ca50
add esp, 0x10
mov edx, dword [ebp - 0x6b0]
mov byte [ebp - 4], 0x22
cmp edx, 0x10
jb 0x1001c6f2
mov ecx, dword [ebp - 0x6c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c6e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ccbd
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x6b4], 0
mov dword [ebp - 0x6b0], 0xf
mov byte [ebp - 0x6c4], 0
mov edx, dword [ebp - 0x638]
mov byte [ebp - 4], 0x23
cmp edx, 0x10
jb 0x1001c74b
mov ecx, dword [ebp - 0x64c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001c741
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ccc2
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001ccc7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x714], eax
mov byte [ebp - 4], 0x24
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1001ccd1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x710], eax
cmp dword [ebp - 0x6e4], 0
mov byte [ebp - 4], 0x25
je 0x1001c908
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0xf
mov byte [ebp - 0x664], 0
push 0x24
push 0x100e2fdc
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
call fcn.100058c0
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x6f4]
push eax
call fcn.100056d0
add esp, 0xc
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x634]
mov ebx, eax
call fcn.10003f50
test ebx, ebx
je 0x1001c8f1
cmp dword [ebp - 0x650], 0x10
lea eax, [ebp - 0x664]
push 0
cmovae eax, dword [ebp - 0x664]
lea ecx, [ebp - 0x320]
push eax
call fcn.10004c00
push dword [eax]
lea ecx, [ebp - 0x714]
mov byte [ebp - 4], 0x28
call fcn.10009600
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 0x26
cmp eax, ecx
je 0x1001c88b
push eax
call fcn.100aaa0e
add esp, 4
push 0x100e2088
lea ecx, [ebp - 0x6f8]
call fcn.10003e80
mov byte [ebp - 4], 0x29
call fcn.1000aae0
lea ecx, [ebp - 0x714]
push ecx
lea ecx, [ebp - 0x6f8]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov edx, dword [ebp - 0x6f8]
or ebx, 0xffffffff
mov byte [ebp - 4], 0x26
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c8f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 0x25
call fcn.10003f50
jmp 0x1001c98c
or ebx, 0xffffffff
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 0x25
call fcn.10003f50
jmp 0x1001c98c
push 0x100de924
lea ecx, [ebp - 0x6fc]
call fcn.10003e80
push 0x100e2088
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0x2a
call fcn.10003e80
mov byte [ebp - 4], 0x2b
call fcn.1000aae0
lea ecx, [ebp - 0x6fc]
push ecx
lea ecx, [ebp - 0x6f8]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 0x2a
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c96b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6fc]
mov eax, ebx
mov byte [ebp - 4], 0x25
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c98c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x6cc], 0
je 0x1001cae4
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0xf
mov byte [ebp - 0x664], 0
push 0x24
push 0x100e2fdc
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 0x2c
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
call fcn.100058c0
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 0x2d
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x6dc]
push eax
call fcn.100056d0
add esp, 0xc
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x634]
mov ebx, eax
call fcn.10003f50
test ebx, ebx
je 0x1001cad1
cmp dword [ebp - 0x650], 0x10
lea eax, [ebp - 0x664]
push 0
cmovae eax, dword [ebp - 0x664]
lea ecx, [ebp - 0x320]
push eax
call fcn.10004c00
push dword [eax]
lea ecx, [ebp - 0x710]
mov byte [ebp - 4], 0x2e
call fcn.10009600
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 0x2c
cmp eax, ecx
je 0x1001ca6f
push eax
call fcn.100aaa0e
add esp, 4
push 0x100e20ac
lea ecx, [ebp - 0x6f8]
call fcn.10003e80
mov byte [ebp - 4], 0x2f
call fcn.1000aae0
lea ecx, [ebp - 0x710]
push ecx
lea ecx, [ebp - 0x6f8]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov edx, dword [ebp - 0x6f8]
or ebx, 0xffffffff
mov byte [ebp - 4], 0x2c
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001cad4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x664]
call fcn.10003f50
jmp 0x1001cb68
or ebx, 0xffffffff
lea ecx, [ebp - 0x664]
call fcn.10003f50
jmp 0x1001cb68
push 0x100de924
lea ecx, [ebp - 0x6fc]
call fcn.10003e80
push 0x100e20ac
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 0x30
call fcn.10003e80
mov byte [ebp - 4], 0x31
call fcn.1000aae0
lea ecx, [ebp - 0x6fc]
push ecx
lea ecx, [ebp - 0x6f8]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov edx, dword [ebp - 0x6f8]
mov eax, ebx
mov byte [ebp - 4], 0x30
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001cb47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6fc]
mov eax, ebx
mov byte [ebp - 4], 0x25
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001cb68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x710]
mov eax, ebx
mov byte [ebp - 4], 0x24
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001cb89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x714]
mov eax, ebx
mov byte [ebp - 4], 0x23
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001cbaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x6dc]
call fcn.10003f50
lea ecx, [ebp - 0x6f4]
call fcn.10003f50
push esi
call fcn.1006c0a0
add esp, 4
lea ecx, [ebp - 0x6ac]
call fcn.10003f50
lea ecx, [ebp - 0x67c]
call fcn.10003f50
lea ecx, [ebp - 0x694]
call fcn.10008e10
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001cc06
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.10080681
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004100
push 0x80070057
call fcn.10004100
push 0x80070057
call fcn.10004100
push 0x80070057
call fcn.10004100
call fcn.100aae05
call fcn.100047f0
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
call fcn.1008082e
call fcn.100aae05
push 0x80004005
call fcn.10004100
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
push 0x80004005
call fcn.10004100
push 0x80004005
call fcn.10004100
push 0x80004005
call fcn.10004100
push 0x80004005
call fcn.10004100
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
call fcn.100aae05
push 0x80004005
call fcn.10004100
push 0x80004005
call fcn.10004100
int3