Function at 0x121186b8
Capabilities:
Check http status code
Make an http request with a cookie
Send data
Send http request

Disassembly:
mov eax, 0x1211eb4d
call fcn.120820e8
mov eax, 0x142c
call fcn.12082050
mov eax, dword [section..cdata]
push ebx
push esi
mov ebx, ecx
push edi
xor edi, edi
inc dword [ebx + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov dword [ebp - 0x1420], edi
mov dword [ebp - 0x1430], edi
mov dword [ebp - 0x1438], edi
mov dword [ebp - 0x142c], edi
mov dword [ebp - 0x1434], edi
mov dword [ebp - 0x1424], edi
call dword [eax + 0x2c]
mov esi, eax
cmp esi, 1
jne 0x12118c7d
push dword [ebx + 0xfc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov esi, eax
cmp esi, 1
jne 0x12118c7d
xor eax, eax
cmp dword [ebx + 0x8c], edi
je 0x12118739
mov eax, 0x800000
push edi
or eax, 0x84400000
push eax
push edi
push edi
push 0x1205dc20
push dword [ebx + 0xd4]
push 0x1205dc18
push dword [ebx + 0x84]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [ebx + 0x88], eax
jne 0x12118787
push 0xffffffffffffffff
push 0x12055828
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 1
push 0xffffffffffffffe1
call fcn.12099f0a
add esp, 0x14
jmp 0x12118b25
cmp dword [ebx + 0x100], edi
je 0x121187f4
cmp dword [ebx + 0xf4], edi
je 0x121187f4
mov eax, dword [ebx + 0xf8]
cmp eax, edi
je 0x121187f4
add eax, 0x12
push eax
call fcn.12099f0a
mov esi, eax
cmp esi, edi
pop ecx
mov dword [ebp - 0x1434], esi
je 0x12118b09
push dword [ebx + 0xf4]
push 0x1205dc08
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
push 0x3b
push esi
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 0x14
cmp eax, edi
je 0x121187e0
mov byte [eax], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x121187e5
sub eax, edx
mov dword [ebp - 0x1424], eax
mov dword [ebp - 0x1414], 1
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
push eax
push ecx
push dword [ebp - 0x1424]
xor esi, esi
push dword [ebp - 0x1434]
mov dword [ebp - 0x1418], edi
push dword [ebx + 0x88]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test edi, edi
jne 0x1211883e
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x1418], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x121188db
mov ecx, dword [ebp - 0x1418]
cmp ecx, dword [ebp - 0x1414]
je 0x1211897b
cmp ecx, 0x2eed
jb 0x1211888d
cmp ecx, 0x2eef
jbe 0x12118888
cmp ecx, 0x2f05
je 0x12118883
cmp ecx, 0x2f0b
jbe 0x1211888d
cmp ecx, 0x2f0d
ja 0x1211888d
push 2
pop edi
jmp 0x1211888f
xor edi, edi
inc edi
jmp 0x1211888f
xor edi, edi
push 0
push 7
push ecx
push dword [ebx + 0x88]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp edi, 1
mov esi, eax
jne 0x121188b0
test esi, esi
je 0x121189a9
test esi, esi
jne 0x121188ca
cmp dword [ebp - 0x1418], esi
je 0x1211897b
mov esi, 0x2f00
jmp 0x1211897b
cmp esi, 0x2f00
jne 0x121189c3
jmp 0x1211897b
test edi, edi
jne 0x1211897b
cmp dword [ebp - 0x1418], 0x2f0c
jne 0x1211891c
and dword [ebp - 0x1414], edi
push 4
lea eax, [ebp - 0x1414]
push eax
push 0x2f
push dword [ebx + 0x88]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x121188c0
mov dword [ebp - 0x1418], 0x2f0d
jmp 0x1211892c
cmp dword [ebp - 0x1418], 0x2f0d
jne 0x12118768
push 4
pop esi
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0x141c]
push eax
push 0x1f
push dword [ebx + 0x88]
mov dword [ebp - 0x1414], esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or byte [ebp - 0x141b], 1
push esi
lea eax, [ebp - 0x141c]
push eax
push 0x1f
push dword [ebx + 0x88]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
mov esi, 0x2f00
je 0x12118768
cmp esi, 0x2f00
mov eax, dword [ebp - 0x1418]
mov dword [ebp - 0x1414], eax
jne 0x12118996
xor edi, edi
jmp 0x121187fe
lea ecx, [ebx + 0x98]
call fcn.1210671c
cmp esi, 0x4c7
jne 0x121189ba
push 0xffffffffffffffff
push 0x12055828
push 0x2ef1
jmp 0x12118776
cmp dword [ebp - 0x1418], 0
je 0x121189d5
push 0xffffffffffffffff
push 0x12055828
push dword [ebp - 0x1418]
jmp 0x12118776
push 0
lea eax, [ebp - 0x1424]
push eax
lea eax, [ebp - 0x1414]
push eax
push 0x20000013
push dword [ebx + 0x88]
mov dword [ebp - 0x1424], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x12118a28
cmp dword [ebp - 0x1414], 0xc8
jbe 0x12118a28
push dword [ebp - 0x1414]
mov ecx, ebx
call fcn.12099f0a
mov esi, eax
cmp esi, 1
jne 0x12118c7d
mov esi, 0x1205db6c
lea edi, [ebp - 0x410]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1438]
push eax
lea eax, [ebp - 0x1430]
push eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x410]
push eax
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0xffff
push dword [ebx + 0x88]
xor edi, edi
mov dword [ebp - 0x1430], 0x400
mov dword [ebp - 0x1438], edi
call esi
cmp eax, edi
jne 0x12118b7c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x2f76
je 0x12118a93
push 0xffffffffffffffff
push 0x12055828
jmp 0x12118775
push edi
lea eax, [ebp - 0x1428]
push eax
lea eax, [ebp - 0x1410]
push eax
push 0x2b
push dword [ebx + 0x88]
mov dword [ebp - 0x1428], 0x1000
mov dword [ebp - 0x1438], edi
call esi
cmp eax, edi
je 0x12118b49
mov eax, dword [ebx + 0xf4]
cmp eax, edi
je 0x12118af4
mov ecx, dword [ebp - 0x1428]
cmp ecx, edi
je 0x12118af0
cmp dword [ebx + 0xf8], ecx
jne 0x12118b2c
lea edi, [ebp - 0x1410]
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x12118b2c
xor edi, edi
cmp eax, edi
jne 0x12118b49
push 0x1000
call fcn.12099f0a
cmp eax, edi
pop ecx
mov dword [ebx + 0xf4], eax
jne 0x12118b2c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call fcn.1208ab2b
push 0xffffffffffffffff
push edi
push esi
push 0x15
push 0xfffffffffffffffb
mov ecx, eax
call fcn.12099f0a
mov esi, eax
jmp 0x12118c7d
mov edi, eax
lea esi, [ebp - 0x1410]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1428]
mov dword [ebx + 0xf8], eax
xor edi, edi
lea eax, [ebp - 0x1420]
push eax
push 8
lea eax, [ebp - 0x410]
push eax
mov ecx, ebx
mov dword [ebx + 0x94], edi
call fcn.12099f0a
mov esi, eax
cmp esi, 1
jne 0x12118c7d
mov dword [ebx + 0x90], edi
jmp 0x12118c88
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push edi
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push edi
push edi
call esi
cmp eax, edi
mov dword [ebp - 0x1420], eax
je 0x12118bca
add eax, eax
push eax
call fcn.12099f0a
cmp eax, edi
pop ecx
mov dword [ebp - 0x142c], eax
je 0x12118b09
push dword [ebp - 0x1420]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push edi
push edi
call esi
cmp eax, edi
jne 0x12118bdd
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x2a
push 0xfffffffffffffffe
jmp 0x1211877a
lea ecx, [ebp - 0x141c]
call fcn.12119018
push dword [ebp - 0x142c]
lea ecx, [ebp - 0x141c]
mov dword [ebp - 4], edi
call fcn.12099f0a
cmp eax, 0xfffffffa
mov dword [ebp - 0x1420], eax
jne 0x12118c68
call fcn.1208b273
cmp eax, 0x86
jne 0x12118c68
mov eax, dword [ebx + 0xb8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x12118c1c
sub eax, esi
lea esi, [eax + 1]
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x1430], esi
call fcn.12082050
mov dword [ebp - 0x1414], esp
push esi
push dword [ebp - 0x1414]
push esi
push dword [ebx + 0xb8]
push edi
push edi
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, edi
jle 0x12118c68
push dword [ebp - 0x1414]
call fcn.12099f0a
pop ecx
mov esi, dword [ebp - 0x1420]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x141c]
call fcn.120b8fa3
lea ecx, [ebx + 0x98]
call fcn.1210671c
lea eax, [ebp - 0x142c]
push eax
call fcn.12099f0a
lea eax, [ebp - 0x1434]
push eax
call fcn.12099f0a
pop ecx
pop ecx
mov eax, esi
lea esp, [ebp - 0x1444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.12082031
pop edi
pop esi
pop ebx
leave
ret