Function at 0x425e50
Capabilities:
Check http status code
Connect to http server
Get http content length
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d9e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4c4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x38]
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
push dword [edi + 0x68]
mov esi, dword [eax]
mov dword [edi + 0x34], 0
mov byte [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push 0
push 3
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x425ec7
mov ecx, edi
call fcn.004268c0
test eax, eax
je 0x425ed3
jmp 0x425edc
push dword [edi + 0x68]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 4], 0
jne 0x425ee4
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x42679c
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov dword [edi + 8], eax
mov dword [ebp - 0x44], 0x4aaaa0
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0x30]
shl eax, 0x17
add eax, 0x8440c000
mov dword [ebp - 0x4c], 0x4aa984
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], 0
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp + 0x24], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x425f44
cmp ecx, dword [esi]
jne 0x425f44
lock inc dword [eax]
jmp 0x425f78
mov eax, dword [ecx]
lea edx, [esi + 4]
push 2
push dword [edx]
mov dword [ebp + 0x18], edx
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x4267af
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov edx, dword [ecx]
lea ecx, [esi + 0x10]
inc edx
push edx
push dword [ebp + 0x24]
call fcn.004024f0
add esp, 8
add esi, 0x10
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x425f9b
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004023a0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov edi, dword [edi + 8]
push dword [eax + 0x68]
mov dword [eax + 0x34], 6
mov byte [eax + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x4c]
push eax
push 0x4a85e8
push str.HTTP_1.0
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x425fec
mov ecx, edi
call fcn.004268c0
mov dword [ebp + 0x18], eax
test eax, eax
je 0x425ff8
jmp 0x426004
push dword [edi + 0x68]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 4], 0
jne 0x42600c
mov eax, dword [edi + 0x2c]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x426755
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x5c], 0x4aaa98
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], 0x4aaafc
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 5
cmp byte [ebp + 0x30], 0
je 0x426079
cmp byte [esi + 0x94], 0
je 0x426079
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push eax
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push dword [ebp + 0x18]
or dword [ebp + 0x30], 0x3380
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4267b4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 7
mov edi, dword [ebp + 0x34]
cmp dword [edi], 0
jbe 0x4260f2
lea ecx, [ebp + 0x30]
call fcn.00403e80
mov byte [ebp - 4], 8
lea eax, [ebp + 0x30]
push dword [edi]
push str.Range:_bytes_u__r_n
push eax
call fcn.00408580
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x20]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.004023a0
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov edx, dword [ebp + 0x30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4260f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4260f5
or edi, 0xffffffff
cmp word [esi + 0x42], 0
lea edx, [esi + 0x42]
jbe 0x426176
lea ecx, [ebp + 0x18]
call fcn.0040d1e0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x30]
call fcn.00403e80
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x30]
push dword [ebp + 0x18]
push str.If_Modified_Since:__s_r_n
push eax
call fcn.00408580
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x20]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.004023a0
mov byte [ebp - 4], 0xa
mov eax, edi
mov edx, dword [ebp + 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426158
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426176
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x4267be
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 0x14], edi
mov byte [ebp - 4], 0xf
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x4261f5
push 0x40
push str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
lea ecx, [ebp + 0x20]
call fcn.004023a0
mov ecx, dword [esi + 0x8c]
lea edx, [ebp + 0x14]
push 0xfde9
call fcn.0040cb90
mov edi, dword [ebp + 0x14]
add esp, 4
cmp dword [edi - 4], 1
jle 0x4261ec
push dword [edi - 0xc]
lea ecx, [ebp + 0x14]
call fcn.0040d4c0
mov edi, dword [ebp + 0x14]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x426200
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0x20]
xor edx, edx
mov esi, dword [esi + 4]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x10]
cmove ecx, edx
mov dword [ebp - 0x30], ecx
push dword [eax + 0x68]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], dl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x426256
mov ecx, esi
call fcn.004268c0
mov dword [ebp + 0x18], eax
test eax, eax
je 0x42625f
jmp 0x426274
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x30], 0
je 0x42626e
mov dword [ebp + 0x18], 0
jmp 0x426274
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x18], eax
push 0
lea ecx, [ebp - 0x28]
mov dword [esi + 0x98], 0
push ecx
lea eax, [esi + 0x98]
mov dword [ebp - 0x28], 4
push eax
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x426701
push 0
lea eax, [ebp - 0x28]
mov dword [ebp + 0x24], 0
push eax
lea eax, [ebp + 0x24]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, eax
lea edx, [esi + 0x98]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x24]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x24], ecx
je 0x42631a
cmp dword [edx], 0x130
je 0x42631a
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x10
push ecx
lea eax, [esi + 0x52]
push eax
push 0x4000000b
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp + 0x24]
lea edx, [esi + 0x98]
test eax, eax
jne 0x42631a
xorps xmm0, xmm0
movups xmmword [esi + 0x52], xmm0
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x4263ee
cmp dword [edx], 0xc8
jne 0x4263ee
mov dword [ebp + 0x30], 0
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x30]
push 0x410
call fcn.00408010
mov esi, dword [ebp + 0x30]
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
mov dword [ebp + 8], 0x410
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4263bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x426629
push esi
call fcn.0046eb32
add esp, 4
mov dword [ebp + 0x30], 0
lea ecx, [ebp + 0x30]
push dword [ebp + 8]
call fcn.00408010
mov esi, dword [ebp + 0x30]
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x426623
mov edx, dword [ebp + 8]
test edx, edx
je 0x4263d4
mov ecx, dword [ebp - 0x10]
shr edx, 1
push edx
push esi
lea ecx, [ecx + 0x90]
call fcn.004023a0
mov byte [ebp - 4], 0xf
push esi
call fcn.0046eb32
mov ecx, dword [ebp + 0x24]
add esp, 4
mov esi, dword [ebp - 0x10]
mov dword [ebp + 0x30], 0
mov eax, dword [esi + 0x98]
add eax, 0xffffff38
cmp eax, 0xd2
ja case.0x426407.201
movzx eax, byte [eax + 0x4267e4]
jmp dword [eax*4 + 0x4267c8]
mov eax, dword [ebp + 0x34]
test ecx, ecx
jne 0x426421
mov dword [eax], ecx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
jmp 0x426468
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
jmp 0x426468
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x426443
cmp dword [eax], ecx
jae 0x426645
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
jmp 0x426468
mov dword [ebp + 0x18], 0xe0000012
jmp 0x42649f
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x426468
mov edx, dword [ebp + 0x34]
mov dword [edx], eax
mov edx, dword [ebp + 0x38]
mov dword [edx], ecx
cmp eax, 0x2f0d
je 0x4265b5
cmp eax, 0x2f0c
je 0x4265b5
cmp eax, 0x2f06
je 0x4265b5
cmp eax, 0x2f05
je 0x4265b5
cmp eax, 0xe0000012
jne 0x4266f2
lea ecx, [ebp + 0x28]
call fcn.00403e80
mov byte [ebp - 4], 0x2c
lea eax, [ebp + 0x28]
push eax
push dword [esi + 0x98]
push dword [esi + 4]
call fcn.004271b0
mov esi, dword [esi + 0x98]
lea ecx, [ebp + 0x1c]
cmp esi, 0x197
sete byte [ebp - 0x34]
call fcn.00403e80
mov byte [ebp - 4], 0x2d
cmp esi, 0x197
mov esi, dword [ebp - 0x10]
jne 0x4264f0
lea eax, [ebp + 0x1c]
push eax
push dword [esi + 4]
call fcn.00427490
lea ecx, [ebp - 0x18]
call fcn.00403e80
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x14]
call fcn.00403e80
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x34]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.00427340
test al, al
je 0x426675
mov byte [ebp - 4], 0x2e
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42654f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42656e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
or eax, 0xffffffff
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42658d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
mov edx, dword [ebp + 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x426200
cmp byte [esi + 0x81], 0
je 0x426604
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x38], eax
push ecx
push 0x1f
push eax
mov dword [ebp - 0x30], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4265fc
or dword [ebp + 0x10], 0x3f05
lea eax, [ebp + 0x10]
push 4
push eax
push 0x1f
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x426616
mov eax, dword [ebp + 0x18]
jmp 0x426707
push dword [esi + 4]
lea ecx, [esi + 0xc]
push eax
push 0
call fcn.00427be0
test eax, eax
jne 0x4265fc
lea ecx, [ebp + 0x20]
call fcn.004072b0
jmp 0x426200
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0xf
push esi
call fcn.0046eb32
add esp, 4
mov dword [ebp + 0x30], 0
jmp 0x42670a
mov dword [ebp + 0x18], 0xe0000010
jmp 0x42670a
mov dword [ebp + 0x18], 0xe0000013
jmp 0x42670a
mov dword [ebp + 0x18], 0xe0000016
jmp 0x42670a
mov dword [ebp + 0x18], 0xe0000018
jmp 0x42670a
mov byte [ebp - 4], 0x2e
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426696
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4266b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
mov eax, esi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4266d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, esi
mov edx, dword [ebp + 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42670a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42670a
test eax, eax
jne 0x42670a
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], eax
jmp 0x42670a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 7
or esi, 0xffffffff
add edi, 0xfffffff0
mov ecx, esi
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x426728
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp + 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426746
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00421d90
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x426771
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
push 0
push esi
mov dword [ebp - 0x44], 0x4aaaa0
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x34
call fcn.004024e0
push 0x80004005
call fcn.004024c0
push 0x80004005
call fcn.004024c0
das
inc edx
add byte [esi], cl
inc edx
add byte [ecx + 0x66], dl
inc edx
add byte [esi + 0x64], cl
inc edx
add byte [ebp + 0x66], bl
inc edx
add byte [ecx + 0x66], ch
inc edx
add byte [edi + 0x64], dl
inc edx
add byte [eax], al
push es
push es
push es
push es
push es
add dword [esi], eax
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add al, byte [esi]
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add eax, dword [esi]
add al, 5
push es
push es
add eax, dword [esi]
push es
add eax, -858993460
int3