Function at 0x1000305f
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
mov eax, 0x100190cc
call fcn.1000ea40
sub esp, 0x90c
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, ebx
mov byte [ebp - 4], 2
mov dword [eax], ebx
je 0x10003097
call fcn.10003a70
jmp 0x10003099
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.1000c81c
add esp, 0x14
test eax, eax
je 0x100032ff
mov ecx, 0x221
xor eax, eax
lea edi, [ebp - 0x917]
mov byte [ebp - 0x918], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
call fcn.1000399e
cmp eax, 0x888
jb 0x10003108
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x100030ef
call fcn.10003a70
jmp 0x100030f1
xor eax, eax
push 0x887
push eax
lea eax, [ebp - 0x918]
push eax
call fcn.1000eab1
add esp, 0xc
jmp 0x10003133
lea ecx, [ebp - 0x10]
call fcn.1000399e
test eax, eax
je 0x10003133
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x10003122
call fcn.10003a70
jmp 0x10003124
xor eax, eax
push eax
lea eax, [ebp - 0x918]
push eax
call fcn.1000edf0
pop ecx
pop ecx
lea eax, [ebp - 0x918]
xor edi, edi
push eax
call fcn.1000eb50
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
jle 0x100031b9
mov dword [ebp - 0x14], 4
lea esi, [ebp - 0x918]
mov cl, byte [ebp + edi - 0x918]
lea eax, [ebp + edi - 0x918]
mov byte [esi], cl
cmp byte [eax], 0x25
jne 0x100031af
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jge 0x100031af
cmp byte [ebp + edi - 0x917], 0x32
jne 0x100031af
cmp byte [ebp + edi - 0x916], 0x35
jne 0x100031af
mov al, byte [ebp + edi - 0x915]
cmp al, 0x32
jl 0x100031af
cmp al, 0x37
jg 0x100031af
movsx eax, byte [ebp + edi - 0x914]
push eax
call fcn.1000efeb
test eax, eax
pop ecx
je 0x100031af
inc edi
inc edi
add dword [ebp - 0x14], 2
inc edi
inc dword [ebp - 0x14]
inc esi
cmp edi, dword [ebp - 0x1c]
jl 0x10003156
cmp dword [ebp - 0x24], 3
jne 0x100032ff
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x100031d1
call fcn.10003a70
jmp 0x100031d3
xor eax, eax
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x100032ff
lea ecx, [ebp - 0x20]
push 4
push ecx
push 6
push eax
mov dword [ebp - 0x20], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov esi, str.Accept:_text__r_n
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp ecx, ebx
movsb byte es:[edi], byte [esi]
je 0x10003226
call fcn.10003a70
jmp 0x10003228
xor eax, eax
push ebx
push 0x20200000
push ebx
push ebx
push str.HTTP_1.0
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
cmp edi, ebx
je 0x100032fa
lea eax, [ebp - 0x40]
push 0x20000000
push eax
call fcn.1000eb50
pop ecx
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 0x90]
push eax
push 0x13
push edi
mov dword [ebp - 0x2c], 0x50
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x100032af
lea eax, [ebp - 0x90]
push eax
call fcn.1000ef60
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x100032ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push edi
call esi
cmp dword [ebp - 0x1c], 0x194
jne 0x100032fa
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x100032da
call fcn.10003a43
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x100032e9
call fcn.10003a43
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x100032f5
call fcn.10003a43
push 1
pop eax
jmp 0x1000332b
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x1000330e
call fcn.10003a43
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x1000331d
call fcn.10003a43
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x10003329
call fcn.10003a43
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8