Function at 0x44f2af
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
push edi
call sub.ccL80U.dll_Ordinal_1938
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x44f698
cmp dword [esi + 4], edi
je 0x44f698
cmp dword [esi + 0x18], 2
mov ecx, 0x100
jne 0x44f2ee
mov ecx, 0x800100
mov esi, dword [esi + 0x14]
push ecx
push 0x48b144
push edi
push edi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 8], ebx
jne 0x44f346
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f490
test byte [eax + 0x1c], 1
je 0x44f490
cmp byte [eax + 0x19], 2
jb 0x44f490
push esi
push str.K_j
push 0xe
jmp 0x44f482
cmp dword [ebp + 0xc], edi
je 0x44f3a3
push 0xa0000000
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
dec eax
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x44f3a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f490
test byte [eax + 0x1c], 1
je 0x44f490
cmp byte [eax + 0x19], 2
jb 0x44f490
push esi
push str.K_j
push 0xf
jmp 0x44f482
mov esi, dword [ebp + 0x14]
push edi
mov ecx, esi
call sub.ccL80U.dll_Ordinal_3410
push eax
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x44f3f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f490
test byte [eax + 0x1c], 1
je 0x44f490
cmp byte [eax + 0x19], 2
jb 0x44f490
push esi
push str.K_j
push 0x10
jmp 0x44f482
mov ecx, esi
call sub.ccL80U.dll_Ordinal_3410
test eax, eax
jbe 0x44f44e
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp + 0xc], edi
call sub.ccL80U.dll_Ordinal_3410
push eax
mov ecx, esi
call sub.ccL80U.dll_Ordinal_1957
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x44f44e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f490
test byte [eax + 0x1c], 1
je 0x44f490
cmp byte [eax + 0x19], 2
jb 0x44f490
push esi
push str.K_j
push 0x11
jmp 0x44f482
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x44f4a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f490
test byte [eax + 0x1c], 1
je 0x44f490
cmp byte [eax + 0x19], 2
jb 0x44f490
push esi
push str.K_j
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
cmp esi, edi
jle 0x44f4a0
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x44f69f
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push edi
push 0x20000013
push ebx
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x44f4f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f490
test byte [eax + 0x1c], 1
je 0x44f490
cmp byte [eax + 0x19], 2
jb 0x44f490
push esi
push str.K_j
push 0x13
jmp 0x44f482
cmp dword [ebp + 8], 0xc8
je 0x44f53b
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f52f
test byte [eax + 0x1c], 1
je 0x44f52f
cmp byte [eax + 0x19], 3
jb 0x44f52f
push dword [ebp + 8]
push str.K_j
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
mov dword [ebp - 4], 0x80004005
jmp 0x44f69f
cmp byte [ebp + 0x10], 0
je 0x44f69f
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x10], edi
call ebx
jmp 0x44f5e0
cmp dword [ebp + 0x10], edi
je 0x44f69f
mov ecx, dword [ebp + 0x18]
call sub.ccL80U.dll_Ordinal_3410
mov ecx, dword [ebp + 0x18]
mov esi, eax
test esi, esi
mov eax, dword [ebp + 0x10]
jne 0x44f592
inc eax
push eax
call sub.ccL80U.dll_Ordinal_1933
test eax, eax
jne 0x44f5a5
mov dword [ebp - 4], 0x8007000e
xor edi, edi
jmp 0x44f68e
add eax, esi
push eax
call sub.ccL80U.dll_Ordinal_1937
test eax, eax
je 0x44f680
lea edi, [esi - 1]
mov ecx, dword [ebp + 0x18]
and dword [ebp + 0xc], 0
call sub.ccL80U.dll_Ordinal_1957
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
add esi, edi
push esi
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x44f633
mov eax, dword [ebp + 0x10]
mov byte [esi + eax], 0
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 8]
call ebx
xor edi, edi
test eax, eax
jne 0x44f55c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f61e
test byte [eax + 0x1c], 1
je 0x44f61e
cmp byte [eax + 0x19], 2
jb 0x44f61e
push esi
push str.K_j
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
cmp esi, edi
jle 0x44f62e
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
jmp 0x44f689
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f669
test byte [eax + 0x1c], 1
je 0x44f669
cmp byte [eax + 0x19], 2
jb 0x44f669
push esi
push str.K_j
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
test esi, esi
jg 0x44f672
mov dword [ebp - 4], esi
jmp 0x44f687
and esi, 0xffff
or esi, 0x80070000
jmp 0x44f66d
mov dword [ebp - 4], 0x8007000e
xor edi, edi
cmp dword [ebp - 4], edi
jge 0x44f69f
mov ecx, dword [ebp + 0x18]
call sub.ccL80U.dll_Ordinal_1938
jmp 0x44f69f
mov dword [ebp - 4], 0x80070057
cmp dword [ebp - 8], edi
pop edi
pop esi
pop ebx
je 0x44f6b0
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
leave
ret 0x14