Function at 0x10006170
Capabilities:
Prepare http request
Read http header
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100613b7
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x1007a010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x344], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x340], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x33c], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x35c], ecx
mov ecx, dword [ebp + 0x1c]
xor esi, esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x364], ecx
mov dword [eax + 0x10], esi
jb 0x100061f3
mov eax, dword [eax]
mov byte [eax], 0
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], esi
jb 0x10006201
mov ecx, dword [ecx]
xor eax, eax
mov word [ecx], ax
mov eax, dword [edx + 4]
mov edi, dword [edx]
mov ecx, eax
sub ecx, edi
je 0x10006230
cmp edi, eax
je 0x10006230
mov esi, eax
sub esi, eax
push esi
push eax
push edi
call fcn.10046910
mov edx, dword [ebp - 0x348]
add esp, 0xc
add esi, edi
mov dword [edx + 4], esi
nop
mov eax, dword [ebp - 0x35c]
mov dword [eax], 0
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x10006271
lea ecx, [edi + 0x10]
lea ecx, [ecx]
cmp dword [ecx], 0
je 0x10006af9
inc esi
add ecx, 0x38
cmp esi, eax
jb 0x10006260
mov esi, dword [ebp - 0x34c]
cmp dword [esi], 0
je 0x10006af9
mov edx, dword [esi + 4]
test edx, edx
je 0x10006af9
mov bl, 1
mov ecx, 0x100
cmp byte [esi + 0x13c0], bl
jne 0x1000629f
mov ecx, 0x800100
mov eax, dword [ebp - 0x344]
cmp dword [eax + 0x14], 8
jb 0x100062ad
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push eax
push str.POST
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x358], eax
test eax, eax
je 0x10006af9
cmp byte [esi + 0x13c0], bl
jne 0x100062f3
push 4
lea ecx, [ebp - 0x344]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x344], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor eax, eax
xor edx, edx
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], eax
mov word [ebp - 0xbc], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34c]
push eax
lea ebx, [ebp - 0xbc]
lea eax, [edx + 0x20]
lea ecx, [edx + 0x18]
call fcn.100073b0
xor ecx, ecx
push 2
mov word [ebp - 0x110], cx
xor ebx, ebx
push 0x1006b2ec
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xfc], 7
mov dword [ebp - 0x100], ebx
call fcn.10008dc0
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x110]
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.100093f0
push eax
mov eax, 0x1006b2e4
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.10009430
add esp, 4
cmp dword [ebp - 0x118], 8
jb 0x100063a1
mov edx, dword [ebp - 0x12c]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x12c], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0xfc], 8
jb 0x100063d6
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.10046e92
add esp, 4
mov eax, 7
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xe0], eax
push 2
xor edx, edx
xor eax, eax
push 0x1006b2ec
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x100], ebx
mov word [ebp - 0x110], dx
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], ax
call fcn.10008dc0
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0xf4]
lea esi, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.100093f0
push eax
mov eax, str.___r_n
lea edi, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.10009430
add esp, 4
cmp dword [ebp - 0x134], 8
jb 0x10006462
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.10046e92
add esp, 4
mov edi, 7
xor edx, edx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], ebx
mov word [ebp - 0x148], dx
mov esi, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xe0], esi
jb 0x1000649c
mov eax, dword [ebp - 0xf4]
push eax
call fcn.10046e92
add esp, 4
push str.Content_Disposition:_form_data_name_form_data__r_n
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x12c]
xor ecx, ecx
push eax
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], cx
call fcn.10009480
push eax
mov eax, 0x1006b2e4
lea edi, [ebp - 0x68]
mov byte [ebp - 4], 0xb
call fcn.10009430
add esp, 0x10
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x118], esi
jb 0x100064f9
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.10046e92
add esp, 4
mov eax, 7
mov dword [ebp - 0x118], eax
mov dword [ebp - 0xe0], eax
push 2
xor edx, edx
xor eax, eax
push 0x1006b2e4
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x12c], dx
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], ax
call fcn.10008dc0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x340]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x74]
xor ecx, ecx
xor edi, edi
add edx, dword [ebp - 0x58]
adc ecx, edi
add edx, dword [ebp - 0xe4]
adc ecx, edi
xor esi, esi
add edx, eax
adc ecx, esi
push ecx
push edx
lea esi, [ebp - 0x260]
call fcn.10005cd0
mov dword [ebp - 0x344], eax
xor edx, edx
mov dword [ebp - 0xfc], 7
mov dword [ebp - 0x100], ebx
mov word [ebp - 0x110], dx
lea eax, [ebp - 0x110]
push eax
mov eax, str.User_Agent:
lea edi, [ebp - 0x228]
mov byte [ebp - 4], 0x10
call fcn.10009430
mov ecx, eax
mov eax, dword [ebp - 0x33c]
lea esi, [ebp - 0x1f0]
mov byte [ebp - 4], 0x11
call fcn.100093f0
push eax
mov eax, 0x1006b2e4
lea edi, [ebp - 0x1d4]
mov byte [ebp - 4], 0x12
call fcn.10009430
push eax
mov eax, str.Connection:_keep_alive_r_n
lea edi, [ebp - 0x1b8]
mov byte [ebp - 4], 0x13
call fcn.10009430
push eax
mov eax, str.Keep_Alive:_300_r_n
lea edi, [ebp - 0x19c]
mov byte [ebp - 4], 0x14
call fcn.10009430
push eax
mov eax, str.Content_Type:_multipart_form_data__boundary
lea edi, [ebp - 0x244]
mov byte [ebp - 4], 0x15
call fcn.10009430
mov ecx, eax
lea eax, [ebp - 0xbc]
lea esi, [ebp - 0x20c]
mov byte [ebp - 4], 0x16
call fcn.100093f0
push eax
mov eax, 0x1006b2e4
lea edi, [ebp - 0x180]
mov byte [ebp - 4], 0x17
call fcn.10009430
push eax
mov eax, str.Content_Length:
lea edi, [ebp - 0x164]
mov byte [ebp - 4], 0x18
call fcn.10009430
mov ecx, eax
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x344]
lea edi, [ebp - 0x148]
call fcn.10009570
push eax
mov eax, 0x1006b2e4
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
call fcn.10009430
add esp, 0x28
cmp dword [ebp - 0x134], 8
jb 0x10006698
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.10046e92
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], ebx
mov word [ebp - 0x148], dx
mov edi, 8
cmp dword [ebp - 0x150], edi
jb 0x100066ce
mov eax, dword [ebp - 0x164]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x154], ebx
mov word [ebp - 0x164], cx
cmp dword [ebp - 0x16c], edi
jb 0x100066fa
mov edx, dword [ebp - 0x180]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x170], ebx
mov word [ebp - 0x180], ax
cmp dword [ebp - 0x1f8], edi
jb 0x10006726
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x1f8], esi
mov dword [ebp - 0x1fc], ebx
mov word [ebp - 0x20c], dx
cmp dword [ebp - 0x230], edi
jb 0x10006752
mov eax, dword [ebp - 0x244]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], cx
cmp dword [ebp - 0x188], edi
jb 0x1000677e
mov edx, dword [ebp - 0x19c]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x18c], ebx
mov word [ebp - 0x19c], ax
cmp dword [ebp - 0x1a4], edi
jb 0x100067aa
mov ecx, dword [ebp - 0x1b8]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a8], ebx
mov word [ebp - 0x1b8], dx
cmp dword [ebp - 0x1c0], edi
jb 0x100067d6
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1c4], ebx
mov word [ebp - 0x1d4], cx
cmp dword [ebp - 0x1dc], edi
jb 0x10006802
mov edx, dword [ebp - 0x1f0]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1e0], ebx
mov word [ebp - 0x1f0], ax
cmp dword [ebp - 0x214], edi
jb 0x1000682e
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], ebx
mov word [ebp - 0x228], dx
cmp dword [ebp - 0xfc], edi
jb 0x1000685a
mov eax, dword [ebp - 0x110]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x100], ebx
mov word [ebp - 0x110], cx
cmp dword [ebp - 0x24c], edi
jb 0x10006886
mov edx, dword [ebp - 0x260]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x250], ebx
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 0x28
cmp dword [ebp - 0xe0], edi
jb 0x100068b6
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.10046e92
add esp, 4
mov eax, dword [ebp - 0x350]
mov ecx, dword [eax + 4]
xor edx, edx
mov dword [ebp - 0xe0], esi
mov esi, dword [eax]
sub ecx, esi
mov word [ebp - 0xf4], dx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0x344], ebx
je 0x10006a13
mov dword [ebp - 0x33c], ebx
lea ecx, [ecx]
add esi, dword [ebp - 0x33c]
push 0x1006b454
lea edx, [ebp - 0x298]
push esi
push edx
call fcn.10009480
mov ecx, eax
lea eax, [esi + 0x1c]
lea esi, [ebp - 0x27c]
mov byte [ebp - 4], 0x29
call fcn.100093f0
push eax
mov eax, 0x1006b2e4
lea edi, [ebp - 0x12c]
mov byte [ebp - 4], 0x2a
call fcn.10009430
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2b
call fcn.10008cb0
cmp dword [ebp - 0x118], 8
jb 0x1000696c
mov eax, dword [ebp - 0x12c]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov edi, 8
mov esi, 7
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x12c], cx
cmp dword [ebp - 0x268], edi
jb 0x100069a2
mov edx, dword [ebp - 0x27c]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0x28
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x26c], ebx
mov word [ebp - 0x27c], ax
cmp dword [ebp - 0x284], edi
jb 0x100069d2
mov ecx, dword [ebp - 0x298]
push ecx
call fcn.10046e92
add esp, 4
mov eax, dword [ebp - 0x350]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [ebp - 0x344]
add dword [ebp - 0x33c], 0x38
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0x344], edi
cmp edi, eax
jb 0x10006900
mov edi, 8
push 2
mov eax, 0x1006b2e4
lea esi, [ebp - 0x30]
call fcn.100081e0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x10006a2c
mov eax, esi
mov edi, dword [ebp - 0x358]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10006b19
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x10006a65
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
cmp dword [ebp - 0x54], esi
jb 0x10006a87
mov eax, dword [ebp - 0x68]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x70], esi
jb 0x10006aa7
mov edx, dword [ebp - 0x84]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], ax
cmp dword [ebp - 0x8c], esi
jb 0x10006acd
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], dx
cmp dword [ebp - 0xa8], esi
jb 0x10006af9
mov eax, dword [ebp - 0xbc]
push eax
call fcn.10046e92
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004677e
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x2e8]
push ecx
call fcn.10007820
mov edx, eax
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x2c
call fcn.10007cd0
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 0x2e
call fcn.10007920
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x354], ebx
jae 0x10006b57
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
lea edx, [ebp - 0x354]
push edx
push ecx
push eax
push edi
call esi
test eax, eax
jne 0x10006c45
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x38], 0x10
jb 0x10006b8d
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10046e92
add esp, 4
mov esi, 8
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], esi
jb 0x10006bb0
mov eax, dword [ebp - 0x30]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x54], esi
jb 0x10006bd2
mov edx, dword [ebp - 0x68]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
cmp dword [ebp - 0x70], esi
jb 0x10006bf2
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x8c], esi
jb 0x10006c18
mov eax, dword [ebp - 0xa0]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], cx
cmp dword [ebp - 0xa8], esi
jb 0x10006af9
mov edx, dword [ebp - 0xbc]
push edx
jmp 0x10006af1
mov eax, dword [ebp - 0x340]
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x10006c95
cmp dword [eax + 0x14], 0x10
jb 0x10006c5a
mov eax, dword [eax]
lea edx, [ebp - 0x354]
push edx
push ecx
push eax
push edi
call esi
test eax, eax
jne 0x10006c95
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x38], 0x10
jb 0x10006c83
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10046e92
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
jmp 0x10006a4f
lea ecx, [ebp - 0x354]
push ecx
push 2
push 0x1006b45c
push edi
call esi
test eax, eax
jne 0x10006d7f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x38], 0x10
jb 0x10006cc7
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10046e92
add esp, 4
mov esi, 8
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], esi
jb 0x10006cea
mov eax, dword [ebp - 0x30]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x54], esi
jb 0x10006d0c
mov edx, dword [ebp - 0x68]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
cmp dword [ebp - 0x70], esi
jb 0x10006d2c
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x8c], esi
jb 0x10006d52
mov eax, dword [ebp - 0xa0]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], cx
cmp dword [ebp - 0xa8], esi
jb 0x10006af9
mov edx, dword [ebp - 0xbc]
push edx
jmp 0x10006af1
lea eax, [ebp - 0x338]
push eax
call fcn.10007820
mov edx, eax
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x2f
call fcn.10007cd0
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x31
call fcn.10007920
cmp dword [ebp - 0xc4], 0x10
mov eax, dword [ebp - 0xd8]
jae 0x10006dc6
lea eax, [ebp - 0xd8]
mov edx, dword [ebp - 0xc8]
lea ecx, [ebp - 0x354]
push ecx
push edx
push eax
push edi
call esi
test eax, eax
jne 0x10006e84
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 0x10
cmp dword [ebp - 0xc4], edi
jb 0x10006e03
mov eax, dword [ebp - 0xd8]
push eax
call fcn.10046e92
add esp, 4
mov esi, 0xf
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
cmp dword [ebp - 0x38], edi
jb 0x10006e2b
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10046e92
add esp, 4
cmp dword [ebp - 0x1c], 8
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
jb 0x10006e46
mov edx, dword [ebp - 0x30]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x68]
call fcn.10007650
lea ecx, [ebp - 0x84]
call fcn.10007650
lea ecx, [ebp - 0xa0]
call fcn.10007650
lea ecx, [ebp - 0xbc]
call fcn.10007650
jmp 0x10006af9
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, dword [ebp - 0x348]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x360]
push edx
push eax
push ebx
push 0x13
sub ecx, eax
push edi
mov dword [ebp - 0x360], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x340], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10006ef4
mov byte [ebp - 4], 0x32
mov eax, dword [ebp - 0x360]
call fcn.100076f0
push ebx
lea ecx, [ebp - 0x360]
push ecx
mov dword [ebp - 4], 0x31
mov eax, dword [esi]
push eax
push ebx
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], ebx
jne 0x10006f48
mov ebx, esi
call fcn.100077a0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0xd8]
call fcn.10002a50
lea ecx, [ebp - 0x4c]
call fcn.10002a50
lea ecx, [ebp - 0x30]
call fcn.10007650
jmp 0x10006e56
mov eax, dword [esi]
push 0xa
lea ecx, [ebp - 0x368]
push ecx
push eax
mov dword [ebp - 0x368], 0x1006b2d0
call fcn.10047200
add esp, 0xc
mov dword [ebp - 0x350], eax
mov dword [ebp - 4], 0x31
cmp eax, ebx
je 0x10006efc
xor esi, esi
mov dword [ebp - 0x33c], esi
nop
lea edx, [ebp - 0x348]
push edx
push edi
mov dword [ebp - 0x348], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1000709b
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 0x10
cmp dword [ebp - 0xc4], edi
jb 0x10006fbf
mov eax, dword [ebp - 0xd8]
push eax
call fcn.10046e92
add esp, 4
mov esi, 0xf
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
cmp dword [ebp - 0x38], edi
jb 0x10006fe7
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10046e92
add esp, 4
mov dword [ebp - 0x38], esi
mov esi, 8
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], esi
jb 0x10007006
mov edx, dword [ebp - 0x30]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x54], esi
jb 0x10007028
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.10046e92
add esp, 4
xor edx, edx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
cmp dword [ebp - 0x70], esi
jb 0x10007048
mov eax, dword [ebp - 0x84]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], cx
cmp dword [ebp - 0x8c], esi
jb 0x1000706e
mov edx, dword [ebp - 0xa0]
push edx
call fcn.10046e92
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
cmp dword [ebp - 0xa8], esi
jb 0x10006af9
mov ecx, dword [ebp - 0xbc]
push ecx
jmp 0x10006af1
mov ecx, dword [ebp - 0x348]
cmp ecx, ebx
jne 0x10007181
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea edx, [ebp - 0x2e8]
push edx
mov byte [ebp - 4], 0x38
call fcn.10007820
mov ecx, dword [ebp - 0x34c]
mov byte [ebp - 4], 0x39
mov edi, dword [ecx + 8]
push edi
lea edx, [ebp - 0x298]
push edx
lea ecx, [esi + edi]
mov edx, eax
call fcn.100079c0
mov ecx, dword [ebp - 0x364]
push eax
mov byte [ebp - 4], 0x3a
call fcn.10008160
lea ecx, [ebp - 0x298]
call fcn.10007650
lea ecx, [ebp - 0x2e8]
call fcn.10007920
mov eax, dword [ebp - 0x35c]
mov ecx, dword [ebp - 0x350]
mov dword [eax], ecx
lea ecx, [ebp - 0xd8]
call fcn.10002a50
lea ecx, [ebp - 0x4c]
call fcn.10002a50
lea ecx, [ebp - 0x30]
call fcn.10007650
lea ecx, [ebp - 0x68]
call fcn.10007650
lea ecx, [ebp - 0x84]
call fcn.10007650
lea ecx, [ebp - 0xa0]
call fcn.10007650
lea ecx, [ebp - 0xbc]
call fcn.10007650
mov al, 1
jmp 0x10006afb
lea eax, [ecx + esi + 0x400]
cmp eax, 0x2000000
ja 0x10006f03
mov esi, dword [ebp - 0x34c]
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 8]
cmp edx, eax
jae 0x100071b7
lea ebx, [esi + 8]
mov byte [ebp - 4], 0x36
call fcn.10007750
mov ecx, dword [ebp - 0x348]
xor ebx, ebx
mov dword [ebp - 4], 0x31
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x33c]
lea edx, [ebp - 0x340]
push edx
push ecx
push eax
push edi
mov dword [ebp - 0x340], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10006f03
mov eax, dword [ebp - 0x340]
cmp dword [ebp - 0x348], eax
jne 0x10006f03
add dword [ebp - 0x33c], eax
mov esi, dword [ebp - 0x33c]
jmp 0x10006f80