Function at 0x4e55a0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc115
mov eax, dword fs:[0]
push eax
mov eax, 0x255c
call fcn.0056ca90
mov eax, dword [0x63d284]
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 ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x2530], ebx
test ebx, ebx
je 0x4e5620
lea edi, [ebx + 0xc]
mov dword [ebp - 0x2520], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 0
test ecx, ecx
je 0x4e5614
mov edx, dword [ecx]
push eax
push 1
push 0
push dword [ebx + 8]
call dword [edx]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
jmp 0x4e5660
mov eax, dword [0x659534]
test al, 1
jne 0x4e5656
or eax, 1
mov dword [0x659534], eax
mov ecx, 0x659540
mov dword [ebp - 4], 0
call fcn.004ea250
push 0x5e2530
call fcn.0056c9a1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2520], 0x659540
lea ecx, [ebp - 0x2504]
call fcn.004e5070
mov eax, 0x50
mov dword [ebp - 0xb4], 2
push 4
push str.http
mov dword [ebp - 0xb0], 4
lea edx, [eax - 0x2f]
mov word [ebp - 0xb8], ax
call fcn.004ea350
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4e56a5
mov esi, dword [esi]
lea ecx, [ebp - 0x2504]
call fcn.004e5070
push esi
call fcn.004e48e0
mov esi, eax
test ebx, ebx
je 0x4e56e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 1
test ecx, ecx
je 0x4e56de
mov edx, dword [ecx]
push eax
push esi
push 1
push dword [ebx + 8]
call dword [edx]
push 0
call edi
test esi, esi
je 0x4e6731
xor eax, eax
mov dword [ebp - 0x98], 0
lea esi, [ebp - 0x24c2]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
lea ecx, [esi + 2]
mov word [ebp - 0x98], ax
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e5720
sub esi, ecx
mov eax, 0xa
sar esi, 1
cmp esi, 7
ja 0x4e5767
mov dword [ebp - 0x88], esi
lea eax, [ebp - 0x24c2]
add esi, esi
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x98], ax
jmp 0x4e5826
cmp esi, 0x7ffffffe
ja 0x4e6d08
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4e5791
mov dword [ebp - 0x2508], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4e57b3
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x2508], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4e6d03
add eax, eax
cmp eax, 0x1000
jb 0x4e57da
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4e6d03
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4e6d0d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4e57f5
test eax, eax
je 0x4e57f3
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4e6d1e
jmp 0x4e57f5
xor edi, edi
mov eax, dword [ebp - 0x2508]
mov dword [ebp - 0x88], esi
add esi, esi
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x24c2]
push esi
push eax
push edi
call fcn.005729d0
add esp, 0xc
mov dword [ebp - 0x98], edi
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 4], 1
lea edi, [ebp - 0x20bc]
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
lea ecx, [edi + 2]
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4e5851
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x2508], edi
cmp edi, 7
ja 0x4e58a3
lea esi, [edi + edi]
mov dword [ebp - 0x58], edi
push esi
lea eax, [ebp - 0x20bc]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x68], ax
mov ecx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x2514], ecx
mov dword [ebp - 0x2508], edi
jmp 0x4e5973
cmp edi, 0x7ffffffe
ja 0x4e6d2f
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4e58ce
mov esi, SysReAllocString
mov eax, 0xfffffffe
mov dword [ebp - 0x2514], esi
jmp 0x4e58f6
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
mov dword [ebp - 0x2514], esi
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4e6d03
add eax, eax
cmp eax, 0x1000
jb 0x4e591f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4e6d03
push ecx
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4e6d34
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4e593e
test eax, eax
je 0x4e593c
push eax
call fcn.00591cad
add esp, 4
mov dword [ebp - 0x2510], eax
test eax, eax
je 0x4e6d45
jmp 0x4e5944
xor eax, eax
mov dword [ebp - 0x2510], eax
mov dword [ebp - 0x54], esi
lea ecx, [ebp - 0x20bc]
lea esi, [edi + edi]
mov dword [ebp - 0x58], edi
push esi
push ecx
push eax
call fcn.005729d0
mov eax, dword [ebp - 0x2510]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x2514]
lea esi, [ebp - 0x10ba]
mov byte [ebp - 4], 2
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e5980
sub esi, edx
mov eax, ecx
sar esi, 1
sub eax, edi
mov dword [ebp - 0x2518], esi
cmp esi, eax
ja 0x4e59d9
mov eax, dword [ebp - 0x2508]
add edi, esi
cmp ecx, 8
mov dword [ebp - 0x58], edi
lea esi, [ebp - 0x68]
cmovae esi, dword [ebp - 0x68]
lea ecx, [esi + eax*2]
mov eax, dword [ebp - 0x2518]
add eax, eax
push eax
lea eax, [ebp - 0x10ba]
push eax
push ecx
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4e5b84
mov eax, SysReAllocString
sub eax, edi
cmp eax, esi
jb 0x4e6d56
lea edx, [edi + esi]
or edx, 7
cmp edx, 0x7ffffffe
jbe 0x4e5a08
mov eax, SysReAllocString
mov dword [ebp - 0x252c], eax
mov eax, 0xfffffffe
jmp 0x4e5a5d
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x2508], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x2508]
cmp ecx, eax
jbe 0x4e5a33
mov eax, SysReAllocString
mov dword [ebp - 0x252c], eax
mov eax, 0xfffffffe
jmp 0x4e5a5d
mov eax, dword [ebp - 0x2508]
add eax, ecx
cmp edx, eax
cmovb edx, eax
mov dword [ebp - 0x252c], edx
lea eax, [edx + 1]
cmp eax, 0x7fffffff
ja 0x4e6d03
add eax, eax
cmp eax, 0x1000
jb 0x4e5a92
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4e6d03
push ecx
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4e6d5b
mov edx, dword [ebp - 0x252c]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x2514]
jmp 0x4e5abd
test eax, eax
je 0x4e5abb
push eax
call fcn.00591cad
add esp, 4
mov dword [ebp - 0x2524], eax
test eax, eax
je 0x4e6d6c
mov ecx, dword [ebp - 0x2514]
mov edx, dword [ebp - 0x252c]
jmp 0x4e5ac3
xor eax, eax
mov dword [ebp - 0x2524], eax
mov dword [ebp - 0x54], edx
lea ebx, [edi + esi]
mov dword [ebp - 0x58], ebx
lea edx, [edi + edi]
lea ebx, [eax + ebx*2]
mov dword [ebp - 0x2508], ebx
lea edi, [edx + eax]
mov ebx, dword [ebp - 0x2530]
mov dword [ebp - 0x2518], edi
push edx
cmp ecx, 8
jb 0x4e5b52
mov edi, dword [ebp - 0x68]
push edi
push eax
call fcn.005729d0
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x10ba]
push eax
push dword [ebp - 0x2518]
call fcn.005729d0
mov eax, dword [ebp - 0x2508]
xor ecx, ecx
add esp, 0x18
mov word [eax], cx
mov eax, dword [ebp - 0x2514]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x4e5b46
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4e6d7d
mov edi, edx
push ecx
push edi
call fcn.0056c61e
add esp, 8
jmp 0x4e5b7b
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.005729d0
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x10ba]
push eax
push edi
call fcn.005729d0
mov eax, dword [ebp - 0x2508]
add esp, 0x18
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x2524]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0xb4], 3
mov ecx, 0x800100
movzx edi, word [ebp - 0xb8]
mov eax, 0x100
push 0
push 0
push 0
push 0
cmove eax, ecx
push 0x612d3c
mov dword [ebp - 0x2518], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x252c], esi
xor eax, eax
mov byte [ebp - 4], 3
test esi, esi
setne al
mov dword [ebp - 0x2510], eax
test ebx, ebx
je 0x4e5c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 2
test ecx, ecx
je 0x4e5bfc
mov edx, dword [ecx]
push eax
push dword [ebp - 0x2510]
push 2
push dword [ebx + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x4e5cb6
test esi, esi
je 0x4e5c1d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e5c57
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5c4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d7d
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e5cab
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5ca1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d7d
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, dword [ebp - 0x2510]
jmp 0x4e6733
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push 0
cmovae eax, dword [ebp - 0x98]
push edi
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x2528], edi
xor eax, eax
mov byte [ebp - 4], 4
test edi, edi
setne al
mov dword [ebp - 0x2510], eax
test ebx, ebx
je 0x4e5d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 3
test ecx, ecx
je 0x4e5d19
mov edx, dword [ecx]
push eax
push dword [ebp - 0x2510]
push 3
push dword [ebx + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x4e5dd4
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e5d3c
push edi
call ebx
test esi, esi
je 0x4e5d43
push esi
call ebx
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e5d7d
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5d73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d7d
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e5cab
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5ca1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d7d
jmp 0x4e5ca1
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2520]
mov byte [ebp - 4], 5
mov eax, dword [eax + 0x44]
sub eax, 0
je 0x4e5e4a
sub eax, 1
je 0x4e5e2d
sub eax, 1
je 0x4e5e1f
push 3
push 0x61c5ec
lea ecx, [ebp - 0x80]
call fcn.00407cc7
mov edx, dword [ebp - 0x80]
jmp 0x4e5e6a
mov edx, dword [0x61c600]
mov ax, word [0x61c604]
jmp 0x4e5e56
mov eax, dword [0x61c5f8]
mov edx, dword [str.POST]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x70], 4
mov word [ebp - 0x78], ax
jmp 0x4e5e67
mov edx, dword [0x61c5ec]
mov ax, word [0x61c5f0]
mov word [ebp - 0x7c], ax
xor eax, eax
mov word [ebp - 0x7a], ax
mov dword [ebp - 0x70], 3
mov dword [ebp - 0x80], edx
push dword [ebp - 0x2518]
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
push 0
cmovae ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
push 0
push str.HTTP_1.1
push ecx
cmovae eax, edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x2568], edi
xor eax, eax
mov byte [ebp - 4], 6
test edi, edi
setne al
mov dword [ebp - 0x2510], eax
test ebx, ebx
je 0x4e5ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2510]
mov ecx, ebx
push 4
call fcn.004e5530
mov eax, dword [ebp - 0x2510]
test eax, eax
jne 0x4e5fe4
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e5ee5
push edi
call ebx
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e5f1f
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5f15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e5f40
push eax
call ebx
test esi, esi
je 0x4e5f47
push esi
call ebx
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e5f81
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5f77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e5cab
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e5fcf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
mov eax, dword [ebp - 0x2510]
add esp, 8
jmp 0x4e6733
mov ecx, dword [ebp - 0x2520]
cmp dword [ecx + 0x1c], 0
je 0x4e60b6
cmp dword [ecx + 0x20], 8
lea eax, [ecx + 0xc]
jb 0x4e5fff
mov eax, dword [eax]
push 0x20000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [ebp - 0x2508], eax
test ebx, ebx
je 0x4e6034
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2508]
mov ecx, ebx
push 5
call fcn.004e5530
mov eax, dword [ebp - 0x2508]
test eax, eax
jne 0x4e60b0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e6045
push edi
call ebx
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e607f
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6075
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e60a0
push eax
call ebx
test esi, esi
je 0x4e66a7
push esi
call ebx
jmp 0x4e66a7
mov ecx, dword [ebp - 0x2520]
xor eax, eax
cmp dword [ecx + 0x44], 1
mov dword [ebp - 0x2510], eax
jne 0x4e60cd
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x2510], eax
push 0
push eax
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x2508], eax
test ebx, ebx
je 0x4e6105
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2508]
mov ecx, ebx
push 6
call fcn.004e5530
mov eax, dword [ebp - 0x2508]
test eax, eax
jne 0x4e6181
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e6116
push edi
call ebx
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e6150
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6146
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e6171
push eax
call ebx
test esi, esi
je 0x4e66a7
push esi
call ebx
jmp 0x4e66a7
mov eax, dword [ebp - 0x2520]
cmp dword [eax + 0x44], 1
jne 0x4e62f3
cmp dword [eax + 0x34], 0
je 0x4e62f3
add eax, 0x24
mov dword [ebp - 0x2518], 0
cmp dword [eax + 0x14], 0x10
jb 0x4e61b0
mov eax, dword [eax]
lea ecx, [ebp - 0x2518]
push ecx
push dword [ebp - 0x2510]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov dword [ebp - 0x2508], eax
test ebx, ebx
je 0x4e61eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2508]
mov ecx, ebx
push 7
call fcn.004e5530
mov eax, dword [ebp - 0x2508]
test eax, eax
jne 0x4e62f3
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e6200
push edi
call ebx
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e623a
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6230
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d82
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e625b
push eax
call ebx
test esi, esi
je 0x4e6262
push esi
call ebx
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e629c
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6292
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d82
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e6731
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6727
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d82
jmp 0x4e6727
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x2508], eax
test ebx, ebx
je 0x4e6322
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x2508]
mov ecx, ebx
push 8
call fcn.004e5530
mov eax, dword [ebp - 0x2508]
test eax, eax
jne 0x4e639e
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e6333
push edi
call ebx
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e636d
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6363
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e638e
push eax
call ebx
test esi, esi
je 0x4e66a7
push esi
call ebx
jmp 0x4e66a7
xor eax, eax
mov dword [ebp - 0x253c], 0
mov dword [ebp - 0x2524], eax
mov dword [ebp - 0x2558], eax
mov dword [ebp - 0x2554], eax
mov dword [ebp - 0x2514], eax
mov dword [ebp - 0x2550], eax
mov eax, dword [ebp - 0x2520]
mov byte [ebp - 4], 7
mov edx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, dword [eax + 0x3c]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x4e654e
xor ebx, ebx
nop dword [eax]
mov dword [ebp - 0x253c], 0x64
lea ecx, [esi + 0x10]
cmp dword [esi + 0x24], 8
jb 0x4e6406
mov ecx, dword [esi + 0x10]
push 0
lea eax, [ebp - 0x253c]
push eax
push 0
push ecx
push 0xffff
push edi
call edx
mov ecx, dword [ebp - 0x253c]
test ecx, ecx
je 0x4e64eb
mov edx, dword [ebp - 0x2554]
add ecx, 2
sub edx, ebx
mov byte [ebp - 0x2509], 0
cmp ecx, edx
jae 0x4e6449
lea eax, [ecx + ebx]
mov dword [ebp - 0x2554], eax
jmp 0x4e64a9
jbe 0x4e64a9
mov eax, dword [ebp - 0x2514]
sub eax, ebx
cmp ecx, eax
jbe 0x4e647e
lea eax, [ebp - 0x2509]
push eax
push ecx
lea ecx, [ebp - 0x2558]
call fcn.004629b1
mov eax, dword [ebp - 0x2550]
mov ebx, dword [ebp - 0x2558]
mov dword [ebp - 0x2514], eax
jmp 0x4e64a9
sub ecx, edx
push ecx
push 0
push dword [ebp - 0x2554]
mov dword [ebp - 0x2518], ecx
call fcn.00573610
mov edx, dword [ebp - 0x2554]
add esp, 0xc
add edx, dword [ebp - 0x2518]
mov dword [ebp - 0x2554], edx
cmp dword [esi + 0x24], 8
lea ecx, [esi + 0x10]
jb 0x4e64b5
mov ecx, dword [esi + 0x10]
push 0
lea eax, [ebp - 0x253c]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
push ecx
push 0xffff
push edi
call eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e64d2
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esi + 0x28]
call fcn.00407cc7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4e6514
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4e6510
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x4e6510
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4e6500
mov esi, eax
jmp 0x4e652c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4e652c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4e6520
cmp byte [esi + 0xd], 0
mov edx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
je 0x4e63f0
mov eax, dword [ebp - 0x2520]
mov dword [ebp - 0x2524], ebx
mov ebx, dword [ebp - 0x2530]
lea ecx, [ebp - 0x255c]
mov dword [eax + 4], 0
push ecx
lea ecx, [ebp - 0x2560]
mov dword [ebp - 0x255c], 0
push ecx
add eax, 4
mov dword [ebp - 0x2560], 4
push eax
push 0
push 0x20000005
push edi
call edx
mov esi, eax
test ebx, ebx
je 0x4e659c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 9
mov ecx, ebx
call fcn.004e5530
test esi, esi
je 0x4e65f8
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00573610
add esp, 0xc
mov dword [ebp - 0x2564], 0x40
lea eax, [ebp - 0x2564]
push 0
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
push 0x13
push edi
call eax
mov esi, eax
mov dword [ebp - 0x2518], esi
test ebx, ebx
je 0x4e65f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 9
mov ecx, ebx
call fcn.004e5530
test esi, esi
jne 0x4e674f
mov ecx, dword [ebp - 0x2524]
test ecx, ecx
je 0x4e6632
mov edx, dword [ebp - 0x2514]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4e6628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e663f
push edi
call esi
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e6679
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e666f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e669a
push eax
call esi
mov eax, dword [ebp - 0x252c]
test eax, eax
je 0x4e66a7
push eax
call esi
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e66e1
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e66d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e6731
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6727
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
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.0056cd75
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x50]
push eax
call fcn.00580270
mov ecx, dword [ebp - 0x2520]
add esp, 4
cmp dword [ecx], 0
mov dword [ecx + 8], eax
je 0x4e68b5
mov ecx, dword [ebp - 0x2524]
test ecx, ecx
je 0x4e67a7
mov edx, dword [ebp - 0x2514]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4e679d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e67b4
push edi
call esi
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e67ee
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e67e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e680f
push eax
call esi
mov eax, dword [ebp - 0x252c]
test eax, eax
je 0x4e681c
push eax
call esi
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e6856
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e684c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e68aa
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e68a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, dword [ebp - 0x2518]
jmp 0x4e6733
test ebx, ebx
je 0x4e68c2
mov eax, dword [ebx]
push dword [ecx + 4]
mov ecx, ebx
call dword [eax]
xor esi, esi
mov dword [ebp - 0x2508], 0
xor eax, eax
mov dword [ebp - 0x2530], esi
mov dword [ebp - 0x254c], esi
mov dword [ebp - 0x2548], eax
mov dword [ebp - 0x2510], eax
mov dword [ebp - 0x2544], eax
mov byte [ebp - 4], 8
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x2538]
mov dword [ebp - 0x2538], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 0x251c], eax
test ebx, ebx
je 0x4e6957
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 9
test ecx, ecx
je 0x4e6949
mov edx, dword [ecx]
push eax
push dword [ebp - 0x251c]
push 9
push dword [ebx + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x251c]
test eax, eax
je 0x4e6b15
xor eax, eax
cmp eax, dword [ebp - 0x2538]
sbb eax, eax
neg eax
mov dword [ebp - 0x251c], eax
test ebx, ebx
je 0x4e69aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 0xb
test ecx, ecx
je 0x4e699c
mov edx, dword [ecx]
push eax
push dword [ebp - 0x251c]
push 0xb
push dword [ebx + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x251c]
test eax, eax
je 0x4e6b15
mov eax, dword [ebp - 0x2548]
mov edx, eax
mov esi, dword [ebp - 0x2538]
mov ecx, dword [ebp - 0x2530]
inc esi
sub edx, ecx
mov byte [ebp - 0x2509], 0
cmp esi, edx
jae 0x4e69d9
lea eax, [ecx + esi]
jmp 0x4e6a36
jbe 0x4e6a3c
mov eax, dword [ebp - 0x2510]
sub eax, ecx
cmp esi, eax
jbe 0x4e6a1a
lea eax, [ebp - 0x2509]
push eax
push esi
lea ecx, [ebp - 0x254c]
call fcn.004629b1
mov eax, dword [ebp - 0x2544]
mov esi, dword [ebp - 0x254c]
mov dword [ebp - 0x2510], eax
mov eax, dword [ebp - 0x2548]
mov dword [ebp - 0x2530], esi
jmp 0x4e6a42
mov eax, dword [ebp - 0x2548]
sub esi, edx
push esi
push 0
push eax
call fcn.00573610
mov eax, dword [ebp - 0x2548]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x2548], eax
mov esi, dword [ebp - 0x2530]
sub eax, esi
je 0x4e6b0f
lea eax, [ebp - 0x2518]
mov dword [ebp - 0x2518], 0
push eax
push dword [ebp - 0x2538]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x251c], eax
test ebx, ebx
je 0x4e6aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], 0xc
test ecx, ecx
je 0x4e6a9a
mov edx, dword [ecx]
push eax
push dword [ebp - 0x251c]
push 0xc
push dword [ebx + 8]
call dword [edx]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x251c]
test eax, eax
je 0x4e6b15
test ebx, ebx
je 0x4e6ad3
mov ecx, dword [ebp - 0x2520]
mov eax, dword [ebx]
push dword [ecx + 4]
mov ecx, ebx
push dword [ebp - 0x2518]
push dword [ebp - 0x2508]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x251c]
mov esi, dword [ebp - 0x2520]
mov edx, dword [ebp - 0x2508]
mov ecx, dword [ebp - 0x2538]
add edx, ecx
mov dword [ebp - 0x2508], edx
cmp dword [esi + 4], edx
mov esi, dword [ebp - 0x2530]
je 0x4e6b02
test ecx, ecx
jne 0x4e6900
jmp 0x4e6b15
mov eax, 1
mov dword [ebp - 0x251c], eax
jmp 0x4e6b15
mov eax, dword [ebp - 0x251c]
mov ecx, dword [ebp - 0x2520]
test eax, eax
mov edx, dword [ebx]
setne al
movzx eax, al
push dword [ecx + 4]
mov ecx, ebx
push eax
call dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x251c]
mov ecx, ebx
push 0xd
call fcn.004e5530
mov ebx, dword [ebp - 0x251c]
test ebx, ebx
jne 0x4e6b8b
test esi, esi
je 0x4e65f8
mov ecx, dword [ebp - 0x2510]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4e6b7c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push ecx
push esi
call fcn.0056c61e
add esp, 8
jmp 0x4e65f8
test esi, esi
je 0x4e6bbf
mov ecx, dword [ebp - 0x2510]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4e6bb5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push ecx
push esi
call fcn.0056c61e
add esp, 8
mov ecx, dword [ebp - 0x2524]
test ecx, ecx
je 0x4e6bf9
mov edx, dword [ebp - 0x2514]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4e6bef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x4e6c06
push edi
call esi
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x4e6c40
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6c36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x2528]
mov dword [ebp - 0x6c], 7
test eax, eax
je 0x4e6c61
push eax
call esi
mov eax, dword [ebp - 0x252c]
test eax, eax
je 0x4e6c6e
push eax
call esi
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4e6ca8
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6c9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov edx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x4e6cfc
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e6cf2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6d87
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, ebx
jmp 0x4e6733
call fcn.00407b84
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x2509]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x2531]
push eax
call fcn.0057359b
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x253d]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x253e]
push eax
call fcn.0057359b
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x2531]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x2509]
push eax
call fcn.0057359b
call fcn.0057da80
call fcn.0057da80
call fcn.0057da80
int3