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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052320
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x10061cc4
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
push 0x10061cc4
push eax
call fcn.1000b9e0
lea ecx, [ebp - 0x60]
call fcn.1004efe0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.1004f2d0
movzx edi, al
cmp edi, ebx
je 0x1004ffec
cmp dword [ebp - 0x2c], 3
jne 0x1004ffec
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000bab0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 2
call fcn.1000ad50
movzx edx, word [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push str.SOSOTbh
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
je 0x1004ff57
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp + 0x10]
push eax
push 2
push esi
call edi
cmp eax, ebx
jne 0x1004fe56
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x10]
call fcn.10001e10
lea ecx, [ebp - 0x14]
call fcn.10001e10
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.1004f050
lea ecx, [ebp + 8]
call fcn.10001e10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp + 0x10]
push ecx
push 5
push esi
call edi
cmp eax, ebx
je 0x1004fe17
push 4
lea edx, [ebp + 0x10]
push edx
push 5
push esi
call edi
cmp eax, ebx
je 0x1004fe17
push 4
lea eax, [ebp + 0x10]
push eax
push 6
push esi
mov dword [ebp + 0x10], ebx
call edi
cmp eax, ebx
je 0x1004fe17
push 4
lea ecx, [ebp + 0x10]
push ecx
push 6
push esi
call edi
mov edi, eax
cmp edi, ebx
je 0x1004fe17
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push 3
push ebx
push ebx
push edx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1004ff50
push ebx
cmp dword [ebp + 0x14], ebx
je 0x1004fec7
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push ecx
jmp 0x1004fed3
mov edx, dword [ebp - 0x10]
push 0x44000000
push ebx
push ebx
push ebx
push edx
push 0x10060c8c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
test ebx, ebx
je 0x1004ff46
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, eax
test edi, edi
je 0x1004ff3f
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
test edi, edi
je 0x1004ff3f
mov eax, dword [ebp - 0x18]
cmp eax, 0xc8
je 0x1004ff27
cmp eax, 0x130
jne 0x1004ff3f
mov edx, dword [ebp + 0xc]
push edx
push ebx
call fcn.1004fc80
mov edi, eax
add esp, 8
test edi, edi
je 0x1004ff3f
mov edi, 1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x1004ff84
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1004ff84
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x1004ffa5
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x1004ffa5
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.1004f050
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x1004ffd8
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1004ffd8
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.1004f050
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10050023
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10050023
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret