Function at 0x404dc0
Capabilities:
Access peb ldr_data
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x432a88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x43d8f4
xor ebp, ebp
mov dword [esp + 0x1c], edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d8f4
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [0x43d8f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d8f4
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x4c], edi
call fcn.004047c0
cmp eax, edi
je 0x404f79
push edi
push 0x4366ec
push 0x4366ec
push edi
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
cmp ebp, edi
je 0x404f79
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [esp + 0x18]
push edx
push 2
push ebp
mov dword [esp + 0x24], 0x4e20
call esi
cmp eax, edi
je 0x404f79
push 4
lea eax, [esp + 0x18]
push eax
push 6
push ebp
mov dword [esp + 0x24], 0x1388
call esi
cmp eax, edi
je 0x404f79
mov esi, dword [esp + 0x28]
cmp esi, edi
jne 0x404ec7
xor ecx, ecx
xor eax, eax
jmp 0x404ed0
movzx ecx, word [esp + 0x38]
mov eax, dword [esp + 0x30]
push edi
push edi
push 3
push 0x4366ec
push 0x4366ec
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x404f79
push edi
push 0x84000000
push edi
neg esi
push edi
sbb esi, esi
and esi, dword [esp + 0x44]
push edi
push esi
push edi
mov ecx, eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
cmp ebx, edi
je 0x404f79
push 0xa0000000
push 0x11
push str.Connection:_Close
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, edi
je 0x404f79
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x20000013
push ebx
mov dword [esp + 0x34], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, edi
je 0x404f79
mov eax, dword [esp + 0x24]
cmp eax, 0xc8
je 0x405021
or eax, 0xa0060000
cmp eax, 0x80004005
mov dword [esp + 0x18], eax
jne 0x404f82
call fcn.00409db0
mov dword [esp + 0x18], eax
cmp ebx, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x404f8f
push ebx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x404f9a
push eax
call esi
cmp ebp, edi
je 0x404fa1
push ebp
call esi
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405009
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [esp + 0x18], edi
jmp 0x404f82