Function at 0x454b10
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x66ec
call fcn.004cd140
mov eax, dword [0x5402b0]
xor eax, esp
mov dword [esp + 0x66e8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x454c69
xor eax, eax
xor esi, esi
push 0x206
lea edx, [esp + 0x4d6]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], esi
mov word [esp + 0xb4], ax
mov dword [esp + 0xb6], eax
mov dword [esp + 0xba], eax
mov dword [esp + 0xbe], eax
mov dword [esp + 0xc2], eax
mov dword [esp + 0xc6], eax
mov dword [esp + 0xca], eax
mov dword [esp + 0xce], eax
mov word [esp + 0xd2], ax
mov word [esp + 0x4dc], cx
call fcn.004c5470
add esp, 0xc
push 0x206
lea ecx, [esp + 0x2ce]
xor eax, eax
push esi
push ecx
mov word [esp + 0x2d4], ax
call fcn.004c5470
add esp, 0xc
push 0x1ffe
lea eax, [esp + 0x16e6]
xor edx, edx
push esi
push eax
mov word [esp + 0x16ec], dx
call fcn.004c5470
add esp, 0xc
push 0x3c
lea ecx, [esp + 0x54]
push esi
push ecx
mov dword [esp + 0x4c], esi
call fcn.004c5470
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x16ec]
mov dword [esp + 0x88], eax
lea edx, [esp + 0x2d4]
mov eax, ecx
add esp, 0xc
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x104
mov dword [esp + 0x80], 0x1000
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x454c41
lea edx, [esp + 0x50]
push edx
sub eax, edi
push 0
sar eax, 1
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x454c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x66e8]
xor ecx, esp
call fcn.004c0985
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x5c]
cmp eax, 4
jne 0x454c96
mov dword [esp + 0x48], 1
jmp 0x454c9f
cmp eax, 3
jne 0x454c69
mov dword [esp + 0x48], esi
movzx edi, word [esp + 0x68]
push 0
push 0
push 0
push 0
push 0x51c620
mov dword [esp + 0x60], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x454ccd
mov esi, 0xfffffffd
jmp 0x45536c
push 0
push 0
push 3
push 0
push 0
push edi
lea ecx, [esp + 0x2e0]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [esp + 0x28], edx
test edx, edx
je 0x4550dd
jmp 0x454d04
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0xb0]
cmp eax, 1
jne 0x454d2a
xor eax, eax
movzx ecx, word [eax + str.POST]
mov word [esp + eax + 0xa8], cx
add eax, 2
test cx, cx
jne 0x454d11
jmp 0x454d97
cmp eax, 2
jne 0x454d4a
xor eax, eax
movzx ecx, word [eax + 0x52312c]
mov word [esp + eax + 0xa8], cx
add eax, 2
test cx, cx
jne 0x454d31
jmp 0x454d97
cmp dword [ebx + 0x1c], 0
jbe 0x454d79
cmp dword [ebx + 0x18], 0
je 0x454d79
xor eax, eax
jmp 0x454d60
movzx ecx, word [eax + str.POST]
mov word [esp + eax + 0xa8], cx
add eax, 2
test cx, cx
jne 0x454d60
jmp 0x454d97
xor eax, eax
jmp 0x454d80
movzx ecx, word [eax + 0x52312c]
mov word [esp + eax + 0xa8], cx
add eax, 2
test cx, cx
jne 0x454d80
cmp dword [ebx + 0xb8], 0
mov ecx, 0x80048200
je 0x454daa
mov ecx, 0x800c8200
cmp dword [esp + 0x48], 0
je 0x454dc8
mov eax, ebx
or ecx, 0x800000
call fcn.004544f0
test eax, eax
jne 0x454dc8
or ecx, 0x1000
push 0
push ecx
push 0
push 0
push str.HTTP_1.0
lea eax, [esp + 0x16f4]
push eax
lea ecx, [esp + 0xc0]
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x4550ea
push str.Accept:___r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__r_nConnection:close_r_n
lea edx, [esp + 0x4d4]
call fcn.004491b0
add esp, 4
push 0xa0000000
push 0xffffffffffffffff
lea edx, [esp + 0x4d8]
push edx
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edi, dword [ebx + 0x2c]
cmp edi, dword [ebx + 0x30]
jbe 0x454e2c
call fcn.004c237c
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov edi, dword [ebx + 0x30]
cmp dword [ebx + 0x2c], edi
jbe 0x454e48
call fcn.004c237c
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x20]
test ecx, ecx
je 0x454e53
cmp ecx, eax
je 0x454e5c
call fcn.004c237c
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], edi
je 0x454f30
test ecx, ecx
jne 0x454f25
call fcn.004c237c
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x454e83
call fcn.004c237c
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
call fcn.00410c40
mov eax, dword [esp + 0x90]
mov edi, 0x10
cmp dword [esp + 0xa4], edi
jae 0x454ed2
lea eax, [esp + 0x90]
push 0x20000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [esp + 0xa4], edi
jb 0x454efa
mov eax, dword [esp + 0x90]
push eax
call fcn.004c097a
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x454f2c
call fcn.004c237c
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x454f17
call fcn.004c237c
add dword [esp + 0x24], 0x1c
mov ecx, dword [esp + 0x20]
jmp 0x454e37
mov eax, dword [ecx]
jmp 0x454e75
mov eax, dword [eax]
jmp 0x454f09
inc dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1f
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x10], 0x3180
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, eax
test edi, edi
jne 0x454fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x454fd3
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x1f
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x2c], 0x100
push 4
lea eax, [esp + 0x30]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esp + 0x30], 2
jl 0x454f30
mov eax, dword [ebx + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45530d
test edi, edi
je 0x45524e
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0xd2]
push edx
mov word [esp + 0xd4], cx
call fcn.004c5470
add esp, 0xc
xor edi, edi
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 0x13
push esi
mov dword [esp + 0x58], 0x100
mov dword [esp + 0x30], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x45533b
lea edx, [esp + 0xc8]
push edx
call fcn.004c2bca
mov edi, eax
add esp, 4
cmp edi, 0xc8
je 0x4550f7
cmp edi, 0x197
je 0x45506e
cmp edi, 0x193
jne 0x45533b
cmp dword [esp + 0x40], 0
jne 0x45533b
call fcn.004553c0
test al, al
je 0x45533b
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45509a
push eax
call edi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], 1
test eax, eax
je 0x4550b3
push eax
call edi
xor eax, eax
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x4c]
push 0
push 0
push 3
push 0
push 0
push ecx
lea edx, [esp + 0x2e0]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x454d00
mov dword [esp + 0x18], 0xfffffffc
jmp 0x45530d
mov dword [esp + 0x18], 0xfffffffb
jmp 0x45530d
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x455129
lea edx, [esp + 0xc8]
push edx
call fcn.004c2bca
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x45512f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x20
mov edi, ebx
mov eax, esp
lea ecx, [edi + 0x38]
push ecx
push eax
call fcn.004554e0
lea ecx, [edi + 0x58]
push esi
call fcn.004547e0
add esp, 0x24
xor ebx, ebx
xor edi, edi
push 0x2001
lea edx, [esp + 0x46ec]
push 0
push edx
call fcn.004c5470
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x2000
lea ecx, [esp + 0x46f0]
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4551f3
mov edx, dword [esp + 0x10]
add edx, edi
push edx
push ebx
call fcn.004c46f1
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x46f4]
push ecx
lea edx, [edi + ebx]
push edx
call fcn.004c7510
add edi, dword [esp + 0x24]
add esp, 0x14
cmp edi, 0x500000
jbe 0x4551ce
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45532e
cmp dword [esp + 0x10], 0
jne 0x455150
jmp 0x45520f
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x45531c
cmp edi, eax
jne 0x45531c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x45522b
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x14]
push edx
push edi
push ebx
push 0xc8
call eax
mov dword [esp + 0x3c], 1
test ebx, ebx
je 0x455242
push 0
push ebx
call fcn.004c46f1
add esp, 8
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], 0xc8
push 0x1001
lea eax, [esp + 0x36e4]
push 0
push eax
call fcn.004c5470
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 0xc
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x36e8]
push edx
push 0x80000016
push esi
mov dword [esp + 0x4c], 0x1000
call edi
lea eax, [esp + 0x36e0]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x455294
sub eax, ecx
push eax
lea eax, [esp + 0x36e4]
push eax
lea ecx, [ebx + 0x78]
call fcn.0040b8b0
push 0x1001
lea ecx, [esp + 0x6dc]
push 0
push ecx
call fcn.004c5470
add esp, 0xc
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x6e0]
push eax
push 0x16
push esi
mov dword [esp + 0x4c], 0x1000
call edi
lea eax, [esp + 0x6d8]
lea edx, [eax + 1]
jmp 0x4552f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4552f0
sub eax, edx
push eax
lea ecx, [esp + 0x6dc]
push ecx
lea ecx, [ebx + 0x94]
call fcn.0040b8b0
test esi, esi
je 0x455341
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x455347
mov dword [esp + 0x18], 0xfffffffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x45530d
push 0
push ebx
call fcn.004c46f1
add esp, 8
jmp 0x45530d
mov dword [esp + 0x18], edi
jmp 0x45530d
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x455352
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x45535d
push eax
call esi
cmp dword [esp + 0x3c], 0
mov esi, dword [esp + 0x18]
jne 0x45537e
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x45537e
mov edx, dword [ebx + 0x14]
push edx
push 0
push 0
push esi
call eax
mov ecx, dword [esp + 0x66f4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004c0985
mov esp, ebp
pop ebp
ret 4