Function at 0x4023bb
Capabilities:
Check if file exists
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x418826
mov eax, dword fs:[0]
push eax
mov eax, 0x28a8
call fcn.0040abc0
mov eax, dword [0x421280]
xor eax, esp
mov dword [esp + 0x28a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x421280]
xor eax, esp
push eax
lea eax, [esp + 0x28bc]
mov dword fs:[0], eax
mov dword [esp + 0x3c], edx
mov eax, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28c4], 1
xor ebp, ebp
mov dword [esp + 0x38], 0x400
mov dword [esp + 0x54], ebp
mov dword [eax], ebp
call fcn.00401b94
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40243b
push 0x80004005
call fcn.00401c46
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x28c4], 2
mov dword [esp + 0x34], ebp
call fcn.00401b94
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402431
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
xor eax, eax
mov byte [esp + 0x28c4], 3
push 0x7fe
mov word [esp + 0x10bc], ax
lea eax, [esp + 0x10be]
push ebp
push eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], ebp
call fcn.004086d0
add esp, 0xc
mov dword [esp + 0x50], 0x800
call fcn.00401b94
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402431
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
push 0x18
pop ecx
mov byte [esp + 0x28c4], 4
lea edi, [esp + 0x58]
mov esi, str.Content_Type:_application_x_www_form_urlencoded
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov esi, 0xffe
mov word [esp + 0x18b8], ax
push esi
xor edi, edi
lea eax, [esp + 0x18be]
push edi
push eax
call fcn.004086d0
xor eax, eax
push esi
mov word [esp + 0xc8], ax
lea eax, [esp + 0xca]
push edi
push eax
call fcn.004086d0
add esp, 0x18
mov dword [esp + 0x18], 0x50
lea ecx, [esp + 0x20]
push dword [esp + 0x28cc]
call fcn.00402c6e
mov byte [esp + 0x28c4], 5
lea esi, [ebp - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x402582
cmp dword [esi + 0xc], edi
jl 0x402571
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x402571
call fcn.00402ef8
mov ecx, esi
mov ebp, eax
call fcn.00401c2a
add ebp, 0x10
mov dword [esp + 0x2c], ebp
jmp 0x402582
push dword [edx - 0xc]
lea ecx, [esp + 0x30]
push edx
call fcn.00402e6c
mov ebp, dword [esp + 0x2c]
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00401c2a
lea eax, [esp + 0x18]
push eax
lea eax, [ebp - 0x10]
push ecx
mov ecx, eax
mov dword [esp + 0x48], eax
lea edi, [esp + 0xc0]
mov esi, esp
call fcn.00402ef8
add eax, 0x10
lea ecx, [esp + 0x18c0]
mov edx, edi
mov dword [esi], eax
call fcn.00402293
pop ecx
pop ecx
xor esi, esi
push esi
push esi
push esi
push esi
push 0x41eb50
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x402630
mov eax, 0x7530
push eax
push eax
push eax
push 0x1388
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [esp + 0x18], 0x1bb
mov ecx, 0x800000
push esi
push dword [esp + 0x1c]
mov eax, esi
cmove eax, ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18c0]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x402699
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov edi, eax
mov ecx, dword [esp + 0x40]
call fcn.00401c2a
lea ecx, [esi - 0x10]
call fcn.00401c2a
lea ecx, [ebx - 0x10]
call fcn.00401c2a
mov ecx, dword [esp + 0x28cc]
add ecx, 0xfffffff0
call fcn.00401c2a
mov ecx, dword [esp + 0x28d0]
add ecx, 0xfffffff0
call fcn.00401c2a
mov eax, edi
mov ecx, dword [esp + 0x28bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28a4]
xor ecx, esp
call fcn.00406a2f
add esp, 0x28b4
ret
cmp byte [esp + 0x28d4], 0
je 0x4027c5
push ecx
lea ecx, [esp + 0x28d4]
call fcn.004034b4
mov edx, dword [esp + 0x28d4]
pop ecx
cmp dword [edx - 4], 1
mov esi, dword [edx - 0xc]
jle 0x4026d9
push esi
lea ecx, [esp + 0x28d4]
call fcn.00401836
mov edx, dword [esp + 0x28d0]
push esi
lea ecx, [esp + 0x28]
call fcn.004014c4
pop ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c8], 6
call fcn.00401e4f
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401c2a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00402a60
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c8], 7
call fcn.00401e4f
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401c2a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
add eax, 9
push eax
mov dword [esp + 0x48], eax
call fcn.004079f9
mov dword [esp + 0x28], eax
pop ecx
test eax, eax
je 0x402630
mov dword [eax], 0x3d79656b
lea esi, [eax + 4]
cmp dword [ebx - 4], 1
mov edi, dword [ebx - 0xc]
jle 0x40277e
push edi
lea ecx, [esp + 0x18]
call fcn.00401836
mov ebx, dword [esp + 0x14]
push edi
push ebx
push esi
call fcn.00409000
mov ecx, dword [ebx - 0xc]
mov eax, dword [str.x51]
push str.TSOP
push 0x41eadc
mov dword [ecx + esi], eax
mov al, byte [0x41ead4]
push 0x41eae0
push 0x41eae4
mov byte [ecx + esi + 4], al
lea eax, [esp + 0x38]
push 0x41eae8
push eax
call fcn.0040306a
add esp, 0x24
jmp 0x4028eb
mov eax, dword [esp + 0x28d0]
cmp dword [eax - 0xc], esi
je 0x4028ca
push ecx
lea ecx, [esp + 0x28d4]
call fcn.004034b4
mov edx, dword [esp + 0x28d4]
pop ecx
cmp dword [edx - 4], 1
mov esi, dword [edx - 0xc]
jle 0x402807
push esi
lea ecx, [esp + 0x28d4]
call fcn.00401836
mov edx, dword [esp + 0x28d0]
push esi
lea ecx, [esp + 0x2c]
call fcn.004014c4
pop ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c8], 8
call fcn.00401e4f
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401c2a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x28]
call fcn.00402a60
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c8], 9
call fcn.00401e4f
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401c2a
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ebx
call fcn.00402c6e
mov byte [esp + 0x28c4], 0xa
push dword [eax]
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x24]
push str._s_key_sx371
push eax
call fcn.0040306a
mov byte [esp + 0x28d4], 4
add esp, 0x10
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.00401c2a
push dword [esp + 0x1c]
lea eax, [esp + 0xbc]
push 0x800
push eax
call fcn.0040799d
add esp, 0xc
push str.TSOP
push 0x41eb1c
push 0x41eb20
lea eax, [esp + 0x28]
push 0x41eb24
push eax
call fcn.0040306a
add esp, 0x14
mov edi, dword [esp + 0x34]
mov eax, edi
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [esp + 0x1c]
inc eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
test edi, edi
je 0x40290f
push edi
call ebp
push dword [esp + 0x4c]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0xc8]
push eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
je 0x402a54
cmp byte [esp + 0x28d4], 0
je 0x40296f
lea ecx, [esp + 0x58]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x54]
jne 0x40294a
sub ecx, edx
sar ecx, 1
xor eax, eax
push eax
mov eax, dword [esp + 0x48]
push eax
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x68]
push ecx
jmp 0x402977
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40299e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
cmp eax, 2
jle 0x4028fb
jmp 0x402a01
xor eax, eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xor ecx, ecx
lea eax, [esp + 0x50]
push ecx
push eax
lea eax, [esp + 0x10c0]
push eax
push ecx
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x402a15
mov ecx, 0x41eb34
lea eax, [esp + 0x10b8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4029f8
test dx, dx
je 0x4029f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4029f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4029d2
xor eax, eax
jmp 0x4029fd
sbb eax, eax
or eax, 1
test eax, eax
je 0x402a15
push dword [esp + 0x20]
call ebp
push dword [esp + 0x18]
call ebp
push edi
call ebp
jmp 0x402634
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.00402b61
pop ecx
push dword [esp + 0x20]
mov edi, eax
call ebp
push dword [esp + 0x18]
call ebp
mov eax, dword [esp + 0x34]
push eax
call ebp
test edi, edi
je 0x402634
mov edi, dword [esp + 0x38]
test edi, edi
je 0x402634
jmp 0x402638
push dword [esp + 0x20]
call ebp
push dword [esp + 0x18]
jmp 0x402a0e