Function at 0x40114a
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xcc
mov eax, 0x42b6d1
call fcn.004155ac
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push 0x42ea84
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x38], ebx
call fcn.0040206f
push ebx
push ebx
push ebx
push ebx
push str.Get_Flash_Player_version_xml_1.0
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x4011e6
lea eax, [ebp - 0xd0]
call fcn.00408784
cmp dword [eax + 0x18], 8
jb 0x4011b8
mov eax, dword [eax + 4]
jmp 0x4011bb
add eax, 4
push ebx
push 0x1bb
push eax
push dword [ebp - 0x50]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push ebx
push 1
lea esi, [ebp - 0xd0]
mov dword [ebp - 0x4c], eax
call fcn.004023e7
mov edi, 0x42eacc
jmp 0x40126c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x7c]
push 0x578
push eax
mov byte [ebp - 4], 1
call fcn.0040d24d
mov edi, 0x42eacc
push edi
push eax
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 2
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.00402ac9
add esp, 0xc
push 1
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0xd0]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x7c]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x98]
mov byte [ebp - 4], bl
call fcn.004023e7
cmp dword [ebp - 0x4c], ebx
je 0x40129f
mov eax, 0x42ead0
cmp byte [ebp + 0x14], bl
jne 0x401280
mov eax, str._pub_flashplayer_update_current_sau_11_xml_version.xml
push 0x800000
push ebx
push ebx
push ebx
push eax
push 0x42ebb0
push dword [ebp - 0x4c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x38], eax
jmp 0x401320
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x7c]
push 0x579
push eax
mov byte [ebp - 4], 4
call fcn.0040d24d
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 5
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 6
call fcn.00402ac9
add esp, 0xc
push 1
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0x98]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x7c]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0xb4]
mov byte [ebp - 4], bl
call fcn.004023e7
cmp dword [ebp - 0x38], ebx
je 0x40133c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x48], eax
jmp 0x4013bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x98]
push 0x57a
push eax
mov byte [ebp - 4], 7
call fcn.0040d24d
push edi
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 8
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 9
call fcn.00402ac9
add esp, 0xc
push 1
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0xb4]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x98]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.004023e7
cmp dword [ebp - 0x48], ebx
je 0x4013d4
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x48], eax
jmp 0x401455
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x98]
push 0x57b
push eax
mov byte [ebp - 4], 0xa
call fcn.0040d24d
push edi
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 0xb
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 0xc
call fcn.00402ac9
add esp, 0xc
push 1
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0xb4]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x98]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.004023e7
cmp dword [ebp - 0x48], ebx
je 0x401621
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4014f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x98]
push 0x57c
push eax
mov byte [ebp - 4], 0xd
call fcn.0040d24d
push edi
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x44], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 0xf
call fcn.00402ac9
add esp, 0xc
push 1
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0xb4]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x98]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x7c]
call fcn.004023e7
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x3c]
inc eax
push eax
call fcn.00411d83
mov esi, eax
mov eax, dword [ebp - 0x3c]
pop ecx
inc eax
push eax
push ebx
push esi
mov dword [ebp - 0x44], esi
call fcn.00418c10
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x3c]
push esi
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4015b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d24d
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x98]
push 0x57e
push eax
mov byte [ebp - 4], 0x11
call fcn.0040d24d
pop ecx
pop ecx
push edi
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 0x12
call fcn.00402a83
add esp, 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 0x13
call fcn.00402ac9
add esp, 0xc
push 1
call fcn.0040cf44
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0xb4]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x98]
call fcn.004023e7
push ebx
push 1
lea esi, [ebp - 0x7c]
call fcn.004023e7
jmp 0x4015ce
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4015bb
sub eax, edx
push eax
push esi
lea eax, [ebp - 0x30]
call fcn.0040242e
push dword [ebp - 0x44]
call fcn.00412f89
pop ecx
mov dword [ebp - 4], ebx
jmp 0x401610
cmp dword [ebp - 0x3c], ebx
ja 0x40145e
xor edi, edi
inc edi
jmp 0x4016a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d24d
mov esi, eax
lea eax, [ebp - 0x98]
push 0x57f
push eax
mov byte [ebp - 4], 0x15
call fcn.0040d24d
push edi
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402a83
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.00402ac9
xor edi, edi
add esp, 0xc
inc edi
push edi
call fcn.0040cf44
add esp, 0x20
push ebx
push edi
lea esi, [ebp - 0xb4]
call fcn.004023e7
push ebx
push edi
lea esi, [ebp - 0x98]
call fcn.004023e7
push ebx
push edi
lea esi, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.004023e7
cmp dword [ebp - 0x38], ebx
je 0x4016af
push dword [ebp - 0x38]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x4c], ebx
je 0x4016bd
push dword [ebp - 0x4c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x50], ebx
je 0x4016cb
push dword [ebp - 0x50]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x48], ebx
jne 0x40170e
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x40], esp
cmp byte [ebp + 0x14], bl
je 0x4016e4
push 0x5aa
jmp 0x4016e9
push 0x580
push eax
call fcn.0040d24d
pop ecx
pop ecx
push edi
call fcn.0040cf44
add esp, 0x20
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.004022ef
xor al, al
call fcn.00415608
ret 0x10
cmp byte [ebp + 0x14], bl
je 0x401740
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x40171f
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.00401798
test al, al
jne 0x401792
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x40], esp
push 0x5a2
jmp 0x4016e9
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40174c
lea eax, [ebp - 0x2c]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push eax
call fcn.00401ac1
test al, al
jne 0x401792
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x40], esp
push 0x581
push eax
call fcn.0040d24d
pop ecx
pop ecx
push edi
call fcn.0040cf44
add esp, 0x20
mov byte [ebp - 0x31], bl
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.004022ef
mov al, byte [ebp - 0x31]
jmp 0x401706
mov byte [ebp - 0x31], 1
jmp 0x401780