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

Disassembly:
push 0xffffffffffffffff
push 0x42ada4
mov eax, dword fs:[0]
push eax
mov eax, 0x28a8
call fcn.004149e0
mov eax, dword [0x437280]
xor eax, esp
mov dword [esp + 0x28a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437280]
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.00403b2e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403ef3
push 0x80004005
call fcn.00403c6b
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 + 0x30], ebp
call fcn.00403b2e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x403ee9
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.004122a0
add esp, 0xc
mov dword [esp + 0x50], 0x800
call fcn.00403b2e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x403ee9
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], 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.004122a0
xor eax, eax
push esi
mov word [esp + 0xc8], ax
lea eax, [esp + 0xca]
push edi
push eax
call fcn.004122a0
add esp, 0x18
mov dword [esp + 0x18], 0x50
lea ecx, [esp + 0x20]
push dword [esp + 0x28cc]
call fcn.004046ca
mov byte [esp + 0x28c4], 5
lea esi, [ebp - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x40403a
cmp dword [esi + 0xc], edi
jl 0x404029
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x404029
call fcn.00404954
mov ecx, esi
mov ebp, eax
call fcn.00403bea
add ebp, 0x10
mov dword [esp + 0x28], ebp
jmp 0x40403a
push dword [edx - 0xc]
lea ecx, [esp + 0x2c]
push edx
call fcn.004048c8
mov ebp, dword [esp + 0x28]
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00403bea
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.00404954
add eax, 0x10
lea ecx, [esp + 0x18c0]
mov edx, edi
mov dword [esi], eax
call fcn.00403d4b
pop ecx
pop ecx
xor esi, esi
push esi
push esi
push esi
push esi
push 0x432e10
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x4040e8
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 0x404151
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.00403bea
lea ecx, [esi - 0x10]
call fcn.00403bea
lea ecx, [ebx - 0x10]
call fcn.00403bea
mov ecx, dword [esp + 0x28cc]
add ecx, 0xfffffff0
call fcn.00403bea
mov ecx, dword [esp + 0x28d0]
add ecx, 0xfffffff0
call fcn.00403bea
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.0040f167
add esp, 0x28b4
ret
cmp byte [esp + 0x28d4], 0
mov ecx, dword [esp + 0x28d0]
mov esi, dword [ecx - 0xc]
je 0x404258
cmp dword [ecx - 4], 1
jle 0x404183
push esi
lea ecx, [esp + 0x28d4]
call fcn.00403c06
mov ecx, dword [esp + 0x28d0]
mov edx, esi
call fcn.004013da
mov esi, eax
lea ecx, [esp + 0x14]
push esi
call fcn.00401e48
push esi
call fcn.0040f17f
pop ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.004044bc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c8], 6
call fcn.00401dfd
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.00403bea
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
add eax, 9
push eax
mov dword [esp + 0x48], eax
call fcn.00410f1e
mov dword [esp + 0x28], eax
pop ecx
test eax, eax
je 0x4040e8
mov dword [eax], 0x3d79656b
lea esi, [eax + 4]
cmp dword [ebx - 4], 1
mov edi, dword [ebx - 0xc]
jle 0x404211
push edi
lea ecx, [esp + 0x18]
call fcn.00403c06
mov ebx, dword [esp + 0x14]
push edi
push ebx
push esi
call fcn.004131d0
mov ecx, dword [ebx - 0xc]
mov eax, dword [str.x51]
push str.TSOP
push 0x432d9c
mov dword [ecx + esi], eax
mov al, byte [0x432d94]
push 0x432da0
push 0x432da4
mov byte [ecx + esi + 4], al
lea eax, [esp + 0x38]
push 0x432da8
push eax
call fcn.00404ac6
add esp, 0x24
jmp 0x404347
test esi, esi
je 0x404326
cmp dword [ecx - 4], 1
jle 0x40427a
push esi
lea ecx, [esp + 0x28d4]
call fcn.00403c06
mov ecx, dword [esp + 0x28d0]
mov edx, esi
call fcn.004013da
mov esi, eax
lea ecx, [esp + 0x14]
push esi
call fcn.00401e48
push esi
call fcn.0040f17f
pop ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.004044bc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c8], 7
call fcn.00401dfd
mov byte [esp + 0x28c4], 4
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00403bea
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ebx
call fcn.004046ca
mov byte [esp + 0x28c4], 8
push dword [eax]
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x24]
push str._s_key_sx371
push eax
call fcn.00404ac6
mov byte [esp + 0x28d4], 4
add esp, 0x10
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00403bea
push dword [esp + 0x1c]
lea eax, [esp + 0xbc]
push 0x800
push eax
call fcn.00410ec2
add esp, 0xc
push str.TSOP
push 0x432ddc
push 0x432de0
lea eax, [esp + 0x28]
push 0x432de4
push eax
call fcn.00404ac6
add esp, 0x14
mov edi, dword [esp + 0x30]
mov eax, edi
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [esp + 0x1c]
inc eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
test edi, edi
je 0x40436b
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 + 0x30], edi
test edi, edi
je 0x4044b0
cmp byte [esp + 0x28d4], 0
je 0x4043cb
lea ecx, [esp + 0x58]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x54]
jne 0x4043a6
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 0x4043d3
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 0x4043fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
cmp eax, 2
jle 0x404357
jmp 0x40445d
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 0x404471
mov ecx, 0x432df4
lea eax, [esp + 0x10b8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404454
test dx, dx
je 0x404450
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404454
add eax, 4
add ecx, 4
test dx, dx
jne 0x40442e
xor eax, eax
jmp 0x404459
sbb eax, eax
or eax, 1
test eax, eax
je 0x404471
push dword [esp + 0x20]
call ebp
push dword [esp + 0x18]
call ebp
push edi
call ebp
jmp 0x4040ec
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.004045bd
pop ecx
push dword [esp + 0x20]
mov edi, eax
call ebp
push dword [esp + 0x18]
call ebp
mov eax, dword [esp + 0x30]
push eax
call ebp
test edi, edi
je 0x4040ec
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4040ec
jmp 0x4040f0
push dword [esp + 0x20]
call ebp
push dword [esp + 0x18]
jmp 0x40446a