Function at 0x45c717
Capabilities:
Check http status code
Connect to http server
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x790], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x794], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x7a0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x784], esi
mov dword [ebp - 0x7a4], eax
mov byte [ebp - 0x5c], bl
push edi
mov edi, ecx
test esi, esi
je 0x45c7a1
cmp byte [esi], 0x40
jne 0x45c7a1
lea eax, [esi + 1]
push 0x40
push eax
call fcn.00463610
mov dword [ebp - 0x78c], eax
pop ecx
pop ecx
test eax, eax
je 0x45c7a1
mov ecx, eax
lea eax, [esi + 1]
sub ecx, esi
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x78c]
inc eax
mov dword [ebp - 0x784], eax
cmp dword [edi + 0x14], ebx
jne 0x45c7c0
mov ecx, edi
call fcn.0045c620
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, 1
cmp esi, 1
jne 0x45cbf0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [edi + 0x1c], ebx
je 0x45c7d0
push dword [edi + 0x1c]
call esi
cmp dword [edi + 0x18], ebx
je 0x45c7da
push dword [edi + 0x18]
call esi
mov esi, dword [ebp - 0x784]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x7ac], eax
mov ecx, 0x104
lea eax, [ebp - 0x160]
mov dword [edi + 0x18], ebx
mov dword [ebp - 0x7d0], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x7b4], eax
xor eax, eax
mov word [ebp - 0x7c8], ax
lea eax, [ebp - 0x7e0]
push eax
push ebx
push esi
mov dword [edi + 0x1c], ebx
mov dword [ebp - 0x7a8], ecx
mov dword [ebp - 0x7cc], ecx
mov dword [ebp - 0x7b8], ebx
mov dword [ebp - 0x7bc], ebx
mov dword [ebp - 0x7d8], ebx
mov dword [ebp - 0x7dc], ebx
mov dword [ebp - 0x7e0], 0x3c
mov dword [ebp - 0x7b0], ecx
mov dword [ebp - 0x7c0], ebx
mov dword [ebp - 0x7c4], ebx
mov byte [ebp - 0x160], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
mov cl, 2
mov dword [ebp - 0x78c], edx
test esi, esi
je 0x45cbe0
cmp dword [ebp - 0x7d4], edx
je 0x45cbe0
push 0x45c6e2
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push edi
push ebx
push 3
lea eax, [edi + 0xac]
push eax
lea ecx, [edi + 0x2c]
push ecx
push dword [ebp - 0x7c8]
lea eax, [ebp - 0x160]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, 3
cmp dword [edi + 0x18], ebx
je 0x45cbf0
mov esi, 0x4c1834
mov dword [ebp - 0x778], 0x4ca4c4
mov dword [ebp - 0x774], ebx
cmp dword [ebp + 0x10], ebx
jne 0x45c90f
mov eax, dword [ebp - 0x790]
test eax, eax
je 0x45c914
cmp byte [eax], bl
je 0x45c914
mov esi, eax
jmp 0x45c914
mov esi, str.POST
mov edx, 0x1bb
mov eax, 0x84400100
cmp word [ebp - 0x7c8], dx
mov ecx, 0x84c02100
cmove eax, ecx
mov dword [ebp - 0x788], eax
lea eax, [ebp - 0x768]
cmp dword [ebp - 0x7a8], ebx
je 0x45c95e
push dword [ebp - 0x7ac]
push dword [ebp - 0x7b4]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x45c96b
push dword [ebp - 0x7b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp - 0x788]
lea eax, [ebp - 0x778]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x768]
push eax
push esi
push dword [edi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, 4
cmp dword [edi + 0x1c], ebx
je 0x45cbf0
push ebx
push ebx
push 0x4d
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0xa0000000
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [edi + 0x1c]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
call esi
cmp byte [ebp - 0x5c], bl
je 0x45c9ed
push 0xa0000000
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [edi + 0x1c]
call esi
cmp dword [edi + 0x28], 1
jne 0x45ca2a
lea esi, [edi + 0x2c]
push esi
call fcn.00493870
pop ecx
inc eax
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0x2b
push dword [edi + 0x1c]
call esi
lea eax, [edi + 0xac]
push eax
call fcn.00493870
pop ecx
inc eax
push eax
lea eax, [edi + 0xac]
push eax
push 0x2c
push dword [edi + 0x1c]
call esi
mov ecx, dword [ebp - 0x794]
test ecx, ecx
je 0x45ca3d
cmp byte [ecx], bl
je 0x45ca3d
or eax, 0xffffffff
jmp 0x45ca45
mov eax, ebx
mov dword [ebp - 0x78c], eax
mov dword [ebp - 0x788], ebx
mov byte [ebp - 0x779], 5
push dword [ebp + 0x10]
push dword [ebp - 0x790]
push eax
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x780], eax
test esi, esi
jne 0x45cb58
cmp eax, 0x2f0d
je 0x45ca91
cmp eax, 0x2f06
je 0x45ca91
cmp eax, 0x2f19
jne 0x45cad0
push 4
pop esi
lea eax, [ebp - 0x798]
mov dword [ebp - 0x798], esi
push eax
lea eax, [ebp - 0x784]
push eax
push 0x1f
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x784], 0x380
lea eax, [ebp - 0x784]
push esi
push eax
push 0x1f
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [edi + 0x28], 1
jne 0x45cb09
lea esi, [edi + 0x2c]
push esi
call fcn.00493870
pop ecx
inc eax
push eax
push esi
push 0x2b
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea esi, [edi + 0xac]
push esi
call fcn.00493870
pop ecx
inc eax
push eax
push esi
push 0x2c
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [ebp - 0x788]
mov ecx, dword [ebp - 0x794]
inc eax
mov dword [ebp - 0x788], eax
cmp eax, 2
mov eax, dword [ebp - 0x78c]
jl 0x45ca52
mov eax, dword [ebp - 0x780]
push 0xfffffffffffffffe
pop ebx
cmp eax, 0x2ee7
je 0x45cbea
mov cl, byte [ebp - 0x779]
cmp eax, 0x2efd
je 0x45cbf0
push 0xfffffffffffffffd
pop ebx
jmp 0x45cbf0
push ebx
lea eax, [ebp - 0x79c]
mov dword [ebp - 0x79c], 0xa
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x780], eax
mov cl, 7
mov byte [ebp - 0x779], cl
test esi, esi
jne 0x45cb97
push 0xfffffffffffffff3
jmp 0x45cb52
lea eax, [ebp - 0x1c]
push eax
call fcn.00491469
xor ebx, ebx
inc ebx
pop ecx
cmp eax, 0xc8
je 0x45cbe4
cmp eax, 0xce
je 0x45cbe4
push 2
pop ebx
cmp eax, 0xca
je 0x45cbe4
push 3
pop ebx
cmp eax, 0x1f7
je 0x45cbe4
mov cl, byte [ebp - 0x779]
push 0xfffffffffffffff4
pop ebx
cmp eax, 0x1f8
je 0x45cbd8
mov ebx, eax
mov eax, dword [ebp - 0x780]
jmp 0x45cbf0
mov ebx, edx
jmp 0x45cbf0
mov eax, dword [ebp - 0x780]
mov cl, byte [ebp - 0x779]
mov edx, dword [ebp - 0x7a0]
test edx, edx
je 0x45cbfc
mov dword [edx], eax
mov eax, dword [ebp - 0x7a4]
test eax, eax
je 0x45cc08
mov byte [eax], cl
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
leave
ret 0x18