Function at 0x10002be0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005738
push 0x10003ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x278], ebx
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x278], 0x3c
or eax, 0xffffffff
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], eax
mov word [ebp - 0x23c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0x104
lea ecx, [ebp - 0x278]
push ecx
push ebx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x10002caf
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.0__Trident_5.0__SLCC1__.NET_CLR_2.0.50727__.NET_CLR_3.0.30729__.NET_CLR_1.1.4322__.NET_CLR_3.5.21022__.NET_CLR_3.5.30729__.NET4.0C__.NET4.0E__InfoPath.3_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, ebx
jne 0x10002cd3
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
push 0xea60
push 0xea60
push 0xea60
push 0xea60
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push ebx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x268]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x10002d17
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov ecx, 0x104
mov dword [ebp - 0x284], ecx
cmp dword [ebp - 0x26c], 2
jne 0x10002d36
mov ecx, 0x800104
mov dword [ebp - 0x284], ecx
push ecx
push ebx
push ebx
push ebx
mov ecx, dword [ebp - 0x24c]
push ecx
push 0x1000559c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x24], ebx
xor esi, esi
cmp ebx, esi
jne 0x10002d64
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10002d81
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10002d99
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov esi, pe_overlay
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x27c], 0
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x10002dd3
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov ecx, 0x3fff
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x10002dea
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x280]
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x10002e0c
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10002f30
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
test ebx, ebx
jne 0x10002e3f
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 1]
xor eax, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x288]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push ebx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x10002e87
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x288]
mov dword [ebp - 0x34], eax
cmp eax, esi
jb 0x10002edf
lea edi, [esi + esi]
mov dword [ebp - 0x280], edi
push edi
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov edx, eax
mov dword [ebp - 0x20], edx
test edx, edx
jne 0x10002ec0
mov dword [ebp - 0x1c], 1
jmp 0x10002f30
mov ecx, edi
mov esi, dword [ebp - 0x27c]
sub ecx, esi
xor eax, eax
lea edi, [esi + edx]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10002ee2
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x288]
mov esi, ebx
mov eax, dword [ebp - 0x27c]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [ebp - 0x288]
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10002f16
mov dword [ecx], eax
mov dword [ebp - 0x294], ebx
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
ja 0x10002de1
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret