Function at 0x100215b0
Capabilities:
Connect to http server
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1014f750
push 0x1002b1c0
mov eax, dword fs:[0]
push eax
add esp, 0xfffff4a8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xb68]
mov ecx, 0x2d4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x101a8cb0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0xb52], 0
mov byte [ebp - 0xb53], 0
mov byte [ebp - 0xb55], 0
mov byte [ebp - 0xb50], 0
mov byte [ebp - 0xb4f], 0
mov byte [ebp - 0xb4d], 0
mov byte [ebp - 0xb51], 0
mov byte [ebp - 0xb4e], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
xor eax, eax
mov word [ebp - 0x80], ax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], 0x101394cc
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xb0], 0x1000
mov dword [ebp - 0xc4], 0x4000
mov dword [ebp - 0xd8], 0x200
mov dword [ebp - 0xf0], 0x100
mov dword [ebp - 0x108], 0x100
mov dword [ebp - 0x120], 0x100
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x140], 0x3c
mov dword [ebp - 0x158], 0
mov ecx, 0x101cba30
call fcn.10015510
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0
je 0x10021710
call fcn.10004150
mov byte [ebp - 0xb4d], 1
mov dword [ebp - 0x144], eax
lea edx, [ebp - 0x158]
push edx
call fcn.10009b30
add esp, 4
mov word [ebp - 0x80], ax
movzx eax, word [ebp - 0x80]
test eax, eax
je 0x10021755
push 0x12f
push 0x10139570
push str.Reset_small_buffer
movzx ecx, word [ebp - 0x80]
push ecx
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ax, word [ebp - 0x80]
jmp 0x10022a16
cmp dword [ebp + 8], 0
je 0x1002176b
mov edx, dword [ebp + 8]
push edx
call fcn.1002d6f0
add esp, 4
test eax, eax
jne 0x10021793
push 0x135
push 0x10139598
push str.URL_is_NULL
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov eax, 1
jmp 0x10022a16
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x100217f5
mov ecx, dword [ebp - 0x20]
call fcn.100214e0
mov word [ebp - 0x80], ax
movzx ecx, word [ebp - 0x80]
test ecx, ecx
je 0x100217f5
push 0x143
push 0x101395b8
push str.InitInternetHttp
movzx edx, word [ebp - 0x80]
push edx
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ax, word [ebp - 0x80]
mov word [ebp - 0xb58], ax
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb58]
jmp 0x10022a16
push 5
push str.HTTPS
mov ecx, dword [ebp + 8]
push ecx
call fcn.10033170
add esp, 0xc
test eax, eax
jne 0x10021813
mov dword [ebp - 0x70], 1
mov edx, dword [ebp + 8]
push edx
call fcn.1002d6f0
add esp, 4
cmp eax, dword [ebp - 0xb0]
jb 0x1002183c
mov eax, dword [ebp + 8]
push eax
call fcn.1002d6f0
add esp, 4
add eax, 2
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.10009ed0
add esp, 8
mov byte [ebp - 0xb4e], 1
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x12c], eax
cmp byte [ebp - 0xb4e], 0
jne 0x100218ad
push 0x10022cfc
call fcn.10036210
add esp, 4
cmp dword [ebp - 0xa4], 0
je 0x100218c8
cmp dword [ebp - 0xbc], 0
je 0x100218c8
cmp dword [ebp - 0x12c], 0
jne 0x10021914
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
push 0x154
push 0x101395e8
push str.alloc_mem_2_
push 0x66
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov edx, 0x66
mov word [ebp - 0xb5a], dx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb5a]
jmp 0x10022a16
cmp byte [ebp - 0xb4e], 0
jne 0x1002192a
push 0x10022cfc
call fcn.10036210
add esp, 4
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call fcn.10003d40
add esp, 0xc
cmp byte [ebp - 0xb4e], 0
jne 0x1002195a
push 0x10022cfc
call fcn.10036210
add esp, 4
mov eax, dword [ebp - 0xa4]
add eax, dword [ebp - 0xb0]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x140]
push ecx
push 0
mov edx, dword [ebp - 0x12c]
push edx
call fcn.1002a420
add esp, 0xc
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x140]
mov dword [eax], ecx
mov edx, dword [ebp - 0x12c]
mov dword [edx + 0x14], 1
mov eax, dword [ebp - 0x12c]
mov dword [eax + 0x20], 1
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 0x28], 1
mov edx, dword [ebp - 0x12c]
mov dword [edx + 0x30], 1
cmp byte [ebp - 0xb4e], 0
jne 0x100219da
push 0x10022cfc
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb4e], 0
jne 0x100219f0
push 0x10022cfc
call fcn.10036210
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x12c]
push eax
push 0
mov ecx, dword [ebp - 0xa4]
push ecx
call fcn.1002d6f0
add esp, 4
push eax
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp esi, esp
call fcn.1002a390
test eax, eax
jne 0x10021aa9
push 0x164
push 0x1013960c
push str.Bad_URL:
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
cmp byte [ebp - 0xb4e], 0
jne 0x10021a5b
push 0x10022cfc
call fcn.10036210
add esp, 4
push 0x165
push 0x1013962c
mov eax, dword [ebp - 0xa4]
push eax
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
mov edx, 2
mov word [ebp - 0xb5c], dx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb5c]
jmp 0x10022a16
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp - 0xd8]
jb 0x10021acc
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x14]
add eax, 2
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x20]
cmp edx, dword [ebp - 0xf0]
jb 0x10021aef
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 0x20]
add ecx, 2
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x28]
cmp eax, dword [ebp - 0x108]
jb 0x10021b12
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x30]
add edx, 2
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 0x30]
cmp ecx, dword [ebp - 0x120]
jb 0x10021b35
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x30]
add eax, 2
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.10009ed0
add esp, 8
mov byte [ebp - 0xb4f], 1
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x114], eax
cmp byte [ebp - 0xb4f], 0
jne 0x10021bc2
push 0x10022cf5
call fcn.10036210
add esp, 4
cmp dword [ebp - 0xcc], 0
je 0x10021be6
cmp dword [ebp - 0xe4], 0
je 0x10021be6
cmp dword [ebp - 0xfc], 0
je 0x10021be6
cmp dword [ebp - 0x114], 0
jne 0x10021c32
mov eax, dword [ebp - 0x158]
push eax
call fcn.10009d90
add esp, 4
push 0x17d
push 0x10139640
push str.alloc_mem_3_
push 0x66
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ecx, 0x66
mov word [ebp - 0xb5e], cx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb5e]
jmp 0x10022a16
mov byte [ebp - 0xb50], 1
xor edx, edx
mov word [ebp - 0x4c], dx
cmp byte [ebp - 0xb4f], 0
jne 0x10021c55
push 0x10022cf5
call fcn.10036210
add esp, 4
mov eax, dword [ebp - 0xd8]
push eax
push 0
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.1002a420
add esp, 0xc
mov edx, dword [ebp - 0xf0]
push edx
push 0
mov eax, dword [ebp - 0xe4]
push eax
call fcn.1002a420
add esp, 0xc
mov ecx, dword [ebp - 0x108]
push ecx
push 0
mov edx, dword [ebp - 0xfc]
push edx
call fcn.1002a420
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
push 0
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.1002a420
add esp, 0xc
mov byte [ebp - 0xb50], 1
mov edx, dword [ebp - 0x12c]
mov ax, word [edx + 0x18]
mov word [ebp - 0x4c], ax
mov ecx, dword [ebp - 0x12c]
cmp dword [ecx + 0x14], 0
jbe 0x10021d0f
cmp byte [ebp - 0xb4f], 0
jne 0x10021cec
push 0x10022cf5
call fcn.10036210
add esp, 4
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0xcc]
push eax
call fcn.10003d40
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
cmp dword [ecx + 0x20], 0
jbe 0x10021d3e
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0xe4]
push eax
call fcn.10003d40
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
cmp dword [ecx + 0x28], 0
jbe 0x10021d6d
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.10003d40
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
cmp dword [ecx + 0x30], 0
jbe 0x10021d9c
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.10003d40
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.1002d6f0
add esp, 4
test eax, eax
jbe 0x10021db8
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.1002d6f0
add esp, 4
test eax, eax
jbe 0x10021dd4
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x10021e84
movzx ecx, word [ebp - 0x80]
test ecx, ecx
je 0x10021ea4
mov edx, dword [ebp - 0x158]
push edx
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 0x80]
jmp 0x10022a16
mov dword [ebp - 4], 1
cmp byte [ebp - 0xb50], 0
jne 0x10021ec1
push 0x10022cef
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb4f], 0
jne 0x10021ed7
push 0x10022cf5
call fcn.10036210
add esp, 4
mov esi, esp
push 0
push 0
push 3
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
movzx edx, word [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0xcc]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, esp
call fcn.1002a390
mov byte [ebp - 0xb51], 1
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0xb51], 0
jne 0x10021f26
push 0x10022ce9
call fcn.10036210
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x10021fb8
push 0x1af
push 0x10139694
push str.InternetConnect
push 0x19a
push 0x40003
call fcn.10002bc0
add esp, 0x14
cmp byte [ebp - 0xb4e], 0
jne 0x10021f67
push 0x10022cfc
call fcn.10036210
add esp, 4
push 0x1b0
push 0x101396b8
mov eax, dword [ebp - 0xa4]
push eax
push 0x19a
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
mov edx, 0x19a
mov word [ebp - 0xb60], dx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb60]
jmp 0x10022a16
mov dword [ebp - 0x40], 0x80400000
mov eax, dword [ebp - 0x40]
or eax, 0x200
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x70], 0
je 0x10021fdc
mov ecx, dword [ebp - 0x40]
or ecx, 0x803000
mov dword [ebp - 0x40], ecx
cmp byte [ebp - 0xb51], 0
jne 0x10021ff2
push 0x10022ce9
call fcn.10036210
add esp, 4
mov esi, esp
push 0
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x114]
push eax
push 0x101396cc
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp esi, esp
call fcn.1002a390
mov byte [ebp - 0xb52], 1
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0xb52], 0
jne 0x1002204c
push 0x10022ce4
call fcn.10036210
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x100220f1
cmp byte [ebp - 0xb51], 0
jne 0x1002206c
push 0x10022ce9
call fcn.10036210
add esp, 4
mov esi, esp
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
push 0x1c2
push 0x101396d0
push str.HttpOpenRequest
push 0x19a
push 0x40003
call fcn.10002bc0
add esp, 0x14
push 0x1c3
push 0x101396f4
mov eax, dword [ebp - 0x114]
push eax
push 0x19a
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
mov edx, 0x19a
mov word [ebp - 0xb62], dx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb62]
jmp 0x10022a16
push 0x101394af
push 0
push 0x101394c3
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.10021580
add esp, 0x14
cmp byte [ebp - 0xb52], 0
jne 0x10022129
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
push 0xa0000000
mov edx, dword [ebp - 0xbc]
push edx
call fcn.1002d6f0
add esp, 4
push eax
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp esi, esp
call fcn.1002a390
test eax, eax
jne 0x10022201
cmp byte [ebp - 0xb52], 0
jne 0x10022176
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
cmp byte [ebp - 0xb51], 0
jne 0x1002219f
push 0x10022ce9
call fcn.10036210
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
push 0x1d0
push 0x10139708
push str.HttpAddRequestHeaders
push 0x19a
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov edx, 0x19a
mov word [ebp - 0xb64], dx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb64]
jmp 0x10022a16
mov dword [ebp - 4], 0xfffffffe
jmp 0x100222b1
movzx edx, word [ebp - 0x80]
test edx, edx
je 0x100222d1
mov eax, dword [ebp - 0x158]
push eax
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 0x80]
jmp 0x10022a16
cmp dword [ebp - 0x78], 0
je 0x100222e9
call fcn.10004150
mov byte [ebp - 0xb53], 1
mov dword [ebp - 0x148], eax
mov byte [ebp - 0xb54], 0
mov dword [ebp - 4], 2
cmp byte [ebp - 0xb52], 0
jne 0x1002230d
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
push 0
push 0x101394cb
push 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp esi, esp
call fcn.1002a390
test eax, eax
je 0x100226fd
mov dword [ebp - 0x7e4], 0
mov dword [ebp - 0x7e8], 0x1f4000
mov dword [ebp - 0x7ec], 0
mov dword [ebp - 0x7f4], 0
mov dword [ebp - 0x7fc], 0
mov dword [ebp - 0x800], 1
mov dword [ebp - 0x804], 0
mov edx, dword [ebp - 0x7e8]
add edx, 0x14
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x7ec], eax
push 0x14
push 0
mov ecx, dword [ebp - 0x7ec]
push ecx
call fcn.1002a420
add esp, 0xc
mov edx, dword [ebp - 0x7ec]
add edx, 0x14
mov dword [ebp - 0x7ec], edx
jne 0x1002245b
cmp byte [ebp - 0xb52], 0
jne 0x100223d3
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
cmp byte [ebp - 0xb51], 0
jne 0x100223fc
push 0x10022ce9
call fcn.10036210
add esp, 4
mov esi, esp
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
mov edx, dword [ebp - 0x158]
push edx
call fcn.10009d90
add esp, 4
push 0x20e
push 0x10139764
push 0x10139778
push 0x66
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov eax, 0x66
mov word [ebp - 0xb66], ax
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb66]
jmp 0x10022a16
cmp byte [ebp - 0xb52], 0
jne 0x10022471
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
lea ecx, [ebp - 0x7f4]
push ecx
mov edx, dword [ebp - 0x7e8]
sub edx, dword [ebp - 0x7fc]
push edx
mov eax, dword [ebp - 0x7ec]
add eax, dword [ebp - 0x7fc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp esi, esp
call fcn.1002a390
test eax, eax
je 0x10022671
cmp dword [ebp - 0x7f4], 0
ja 0x100224bb
jmp 0x10022671
mov edx, dword [ebp - 0x7fc]
add edx, dword [ebp - 0x7f4]
mov dword [ebp - 0x7fc], edx
mov eax, dword [ebp - 0x7e4]
add eax, dword [ebp - 0x7f4]
mov dword [ebp - 0x7e4], eax
mov ecx, dword [ebp - 0x7fc]
cmp ecx, dword [ebp - 0x7e8]
jne 0x1002266c
cmp dword [ebp - 0x800], 0
je 0x10022520
mov edx, dword [ebp - 0x7e8]
push edx
mov eax, dword [ebp - 0x7ec]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000b360
add esp, 0xc
mov dword [ebp - 0x800], 0
jmp 0x10022553
mov edx, dword [ebp - 0x7e8]
push edx
mov eax, dword [ebp - 0x7ec]
push eax
mov ecx, dword [ebp - 0x804]
push ecx
call fcn.1000b360
add esp, 0xc
mov edx, dword [ebp - 0x804]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.1000b7c0
add esp, 8
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x7e8]
add ecx, 0x14
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x7ec], eax
push 0x14
push 0
mov eax, dword [ebp - 0x7ec]
push eax
call fcn.1002a420
add esp, 0xc
mov ecx, dword [ebp - 0x7ec]
add ecx, 0x14
mov dword [ebp - 0x7ec], ecx
jne 0x10022635
cmp byte [ebp - 0xb52], 0
jne 0x100225ad
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
cmp byte [ebp - 0xb51], 0
jne 0x100225d6
push 0x10022ce9
call fcn.10036210
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
push 0x23e
push 0x1013978c
push str.ERROR_get_mem_block
push 0x66
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov edx, 0x66
mov word [ebp - 0xb68], dx
mov dword [ebp - 4], 0xfffffffe
mov ax, word [ebp - 0xb68]
jmp 0x10022a16
push 0x13e
mov eax, dword [ebp + 0x10]
push eax
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x804], eax
push 0x13e
push 0
mov ecx, dword [ebp - 0x804]
push ecx
call fcn.1002a420
add esp, 0xc
mov dword [ebp - 0x7fc], 0
jmp 0x1002245b
cmp dword [ebp - 0x7fc], 0
jbe 0x100226dc
cmp dword [ebp - 0x800], 0
je 0x100226a9
mov edx, dword [ebp - 0x7fc]
push edx
mov eax, dword [ebp - 0x7ec]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000b360
add esp, 0xc
mov dword [ebp - 0x800], 0
jmp 0x100226dc
mov edx, dword [ebp - 0x7fc]
push edx
mov eax, dword [ebp - 0x7ec]
push eax
mov ecx, dword [ebp - 0x804]
push ecx
call fcn.1000b360
add esp, 0xc
mov edx, dword [ebp - 0x804]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.1000b7c0
add esp, 8
mov dword [ebp + 0xc], eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000c5c0
add esp, 0xc
mov edx, dword [ebp - 0x7e4]
mov dword [ebp - 0x138], edx
jmp 0x10022782
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1002a390
mov dword [ebp - 0x808], eax
cmp byte [ebp - 0xb4e], 0
jne 0x10022728
push 0x10022cfc
call fcn.10036210
add esp, 4
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x80c], eax
mov ecx, dword [ebp - 0x808]
push ecx
push str.HttpSendRequest:__d
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x80c]
push eax
call fcn.1002d690
add esp, 0x10
mov ecx, 0x19a
mov word [ebp - 0x80], cx
push 0x260
push 0x101397c8
mov edx, dword [ebp - 0x80c]
push edx
movzx eax, word [ebp - 0x80]
push eax
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov dword [ebp - 4], 0xfffffffe
jmp 0x10022865
cmp dword [ebp - 0x78], 0
je 0x1002287d
call fcn.10004150
mov byte [ebp - 0xb55], 1
mov dword [ebp - 0x14c], eax
cmp byte [ebp - 0xb52], 0
jne 0x10022893
push 0x10022ce4
call fcn.10036210
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
cmp byte [ebp - 0xb51], 0
jne 0x100228bc
push 0x10022ce9
call fcn.10036210
add esp, 4
mov esi, esp
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.1002a390
cmp dword [ebp - 0x78], 0
je 0x10022a03
push 0x80
mov edx, dword [ebp - 0x158]
push edx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0xb40], eax
cmp dword [ebp - 0xb40], 0
je 0x10022a03
call fcn.10004150
mov dword [ebp - 0x150], eax
cmp byte [ebp - 0xb55], 0
jne 0x10022921
push 0x10022cd3
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb55], 0
jne 0x10022937
push 0x10022cd3
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb53], 0
jne 0x1002294d
push 0x10022cd0
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb53], 0
jne 0x10022963
push 0x10022cd0
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb4d], 0
jne 0x10022979
push 0x10022ccd
call fcn.10036210
add esp, 4
cmp byte [ebp - 0xb4d], 0
jne 0x1002298f
push 0x10022ccd
call fcn.10036210
add esp, 4
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x150]
sub ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x14c]
sub edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x148]
sub eax, dword [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x150]
sub ecx, dword [ebp - 0x144]
push ecx
push str.HTTP_GET:__ld___ld__ld__ld__msec__SIZE__ld_
push 0x80
mov edx, dword [ebp - 0xb40]
push edx
call fcn.1002d690
add esp, 0x20
push 0x27c
push str..wssvrHttpGet.cpp
mov eax, dword [ebp - 0xb40]
push eax
push 0
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10009d90
add esp, 4
mov ax, word [ebp - 0x80]
push edx
mov ecx, ebp
push eax
lea edx, [0x10022a54]
call fcn.1002a3c0
pop eax
pop edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1002aab0
add esp, 0xb68
cmp ebp, esp
call fcn.1002a390
mov esp, ebp
pop ebp
ret 0xc