Function at 0x45f6d0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498dcc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12ac
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x11e0], esi
mov dword [ebp - 0x11f4], eax
mov dword [ebp - 0x11e8], ebx
mov dword [eax], ebx
mov dword [ebp - 0x1224], ebx
cmp esi, ebx
jne 0x45f733
xor eax, eax
jmp 0x46061e
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x46005e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
push 0x10000000
push ebx
push ebx
push ebx
push str.Sogou_NewGame
mov dword [ebp - 0x11f0], eax
mov dword [ebp - 0x11ec], ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
jne 0x45f781
push 0x4bcbb8
lea edx, [ebp - 0x1280]
push edx
mov dword [ebp - 0x1280], ebx
call sub.MSVCR100.dll__CxxThrowException
push 0x45b070
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x45f7a9
push 0x4bcbb8
lea eax, [ebp - 0x124c]
push eax
mov dword [ebp - 0x124c], ebx
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [esi + 0xc]
movzx edx, word [esi + 0x234]
push ecx
mov ecx, dword [esi]
push ebx
push 3
push ebx
push ebx
push edx
lea eax, [esi + 0x34]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x45f7e5
push 0x4bcbb8
lea edx, [ebp - 0x125c]
push edx
mov dword [ebp - 0x125c], ebx
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x11f0]
push eax
push 2
call edi
cmp eax, 0x102
je 0x460047
cmp eax, 1
je 0x460047
cmp eax, 0x80
je 0x460047
cmp eax, 0x81
je 0x460047
mov edx, dword [esi + 0xc]
push edx
push 0x84480000
lea eax, [ebp - 0x12b4]
push eax
mov eax, dword [esi + 4]
push ebx
lea ecx, [esi + 0x1a38]
push ebx
mov dword [ebp - 0x12b4], ecx
lea ecx, [esi + 0x238]
push ecx
lea edx, [esi + 0x14]
push edx
push eax
mov dword [ebp - 0x12b0], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x45f87a
push 0x4bcbb8
lea ecx, [ebp - 0x1274]
push ecx
mov dword [ebp - 0x1274], ebx
call sub.MSVCR100.dll__CxxThrowException
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x11f0]
push edx
push 2
call edi
cmp eax, 0x102
je 0x460030
cmp eax, 1
je 0x460030
cmp eax, 0x80
je 0x460030
cmp eax, 0x81
je 0x460030
lea edx, [esi + 0x2238]
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f8c0
sub eax, edi
sar eax, 1
je 0x45f911
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f8d6
sub eax, edi
push SysReAllocString
sar eax, 1
push eax
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x45f911
push 0x4bcbb8
lea ecx, [ebp - 0x127c]
push ecx
mov dword [ebp - 0x127c], ebx
call sub.MSVCR100.dll__CxxThrowException
lea edx, [esi + 0x2a38]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f920
sub eax, edi
sar eax, 1
je 0x45f971
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f936
sub eax, edi
push 0xa0000000
sar eax, 1
push eax
push edx
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x45f971
push 0x4bcbb8
lea eax, [ebp - 0x1284]
push eax
mov dword [ebp - 0x1284], ebx
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [esi + 0x3a38]
cmp edi, ebx
je 0x45fb0f
cmp dword [esi + 0x3a3c], ebx
jle 0x45fb0f
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea eax, [esi + 0x1238]
mov dword [ebp - 0x80], 0x28
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f9c0
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x11d0]
mov dword [ebp - 0x74], eax
call fcn.004037c0
lea ecx, [ebp - 0x11d0]
push ecx
lea ecx, [ebp - 0x11b4]
mov byte [ebp - 4], 1
call fcn.00408370
mov edx, dword [ebp - 0x11a4]
push edx
mov byte [ebp - 4], 2
call fcn.00497652
mov edi, eax
mov eax, dword [ebp - 0x11b4]
add esp, 4
cmp dword [ebp - 0x11a0], 0x10
mov dword [ebp - 0x1224], edi
jae 0x45fa24
lea eax, [ebp - 0x11b4]
mov ecx, dword [ebp - 0x11a4]
push ecx
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x11a4]
add esp, 0xc
push eax
push 0x20
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x68], edx
mov edx, dword [esi + 8]
push ecx
push edx
mov dword [ebp - 0x6c], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x45fa7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x45fa7e
push 0x4bcbb8
lea eax, [ebp - 0x128c]
push eax
mov dword [ebp - 0x128c], ebx
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x11b4]
call fcn.00403800
lea ecx, [ebp - 0x11d0]
mov byte [ebp - 4], 0
call fcn.00403800
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x11f0]
push ecx
push 2
call edi
cmp eax, 0x102
je 0x460019
cmp eax, 1
je 0x460019
cmp eax, 0x80
je 0x460019
cmp eax, 0x81
je 0x460019
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push 9
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x45fb50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x45fb50
push 0x4bcbb8
lea ecx, [ebp - 0x129c]
push ecx
mov dword [ebp - 0x129c], ebx
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x45fa98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x45fa98
push 0x4bcbb8
lea eax, [ebp - 0x1294]
push eax
mov dword [ebp - 0x1294], ebx
call sub.MSVCR100.dll__CxxThrowException
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x11f0]
push edx
push 2
call edi
cmp eax, 0x102
je 0x460002
cmp eax, 1
je 0x460002
cmp eax, 0x80
je 0x460002
cmp eax, 0x81
je 0x460002
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x12a4], edi
mov word [ebp - 0x34], ax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov dword [ebp - 0x11dc], 0x10
nop
cmp edi, 2
jge 0x45fc30
lea ecx, [ebp - 0x12a4]
push ecx
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x11dc]
push edx
lea eax, [ebp - 0x34]
push eax
push 0x13
push ecx
call ebx
test eax, eax
jne 0x45fc30
push 0x7d0
push eax
lea edx, [ebp - 0x11f0]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x45fc15
cmp eax, 1
je 0x45fc15
cmp eax, 0x80
je 0x45fc15
cmp eax, 0x81
je 0x45fc15
inc edi
jmp 0x45fbc0
push 0x4bcbb8
lea eax, [ebp - 0x12ac]
push eax
mov dword [ebp - 0x12ac], 0
call sub.MSVCR100.dll__CxxThrowException
cmp dword [ebp - 0x11dc], 6
jne 0x4605f6
lea ecx, [ebp - 0x34]
push 0x4a5fb8
push ecx
call dword [sym.imp.MSVCR100.dll_wcsstr]
lea edx, [ebp - 0x34]
add esp, 8
cmp eax, edx
jne 0x4605f6
xor edi, edi
push 0x7e
lea ecx, [ebp - 0x196]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x1268], edi
mov word [ebp - 0x198], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1268]
push edx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x1230]
push eax
lea ecx, [ebp - 0x198]
push ecx
push 5
push edx
mov dword [ebp - 0x1230], 0x40
call ebx
test eax, eax
jne 0x45fcf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45fcf8
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x11f0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x45fce1
cmp eax, 1
je 0x45fce1
cmp eax, 0x80
je 0x45fce1
cmp eax, 0x81
jne 0x45fcf8
push 0x4bcbb8
lea ecx, [ebp - 0x1290]
push ecx
mov dword [ebp - 0x1290], edi
call sub.MSVCR100.dll__CxxThrowException
xor ebx, ebx
xor edi, edi
call fcn.00456df0
cmp eax, 6
jne 0x45fe61
lea ebx, [ebx]
push 0x1000
lea edx, [ebp - 0x1198]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [esi + 8]
add esp, 0xc
lea eax, [ebp - 0x11d4]
push eax
push 0x1000
lea ecx, [ebp - 0x1198]
push ecx
push edx
mov dword [ebp - 0x11d4], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x45fdc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45fda6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x11f0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x45fd8b
cmp eax, 1
je 0x45fd8b
cmp eax, 0x80
je 0x45fd8b
cmp eax, 0x81
jne 0x45fdc1
push 0x4bcbb8
lea ecx, [ebp - 0x1238]
push ecx
mov dword [ebp - 0x1238], 0
call sub.MSVCR100.dll__CxxThrowException
push 0x4bcbb8
lea edx, [ebp - 0x1278]
push edx
mov dword [ebp - 0x1278], 0
call sub.MSVCR100.dll__CxxThrowException
add edi, dword [ebp - 0x11d4]
test edi, edi
jle 0x45fe40
lea eax, [edi + 1]
push eax
call fcn.00497652
mov esi, eax
add esp, 4
lea eax, [edi + 1]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
test ebx, ebx
je 0x45fe21
mov eax, edi
sub eax, dword [ebp - 0x11d4]
push eax
push ebx
push esi
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x11d4]
push eax
mov edx, esi
lea ecx, [ebp - 0x1198]
sub edx, eax
push ecx
add edx, edi
push edx
call sub.MSVCR100.dll_memcpy
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 0x1c
jmp 0x45fe38
mov eax, dword [ebp - 0x11d4]
push eax
lea ecx, [ebp - 0x1198]
push ecx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ebx, esi
mov esi, dword [ebp - 0x11e0]
cmp dword [ebp - 0x11d4], 0
jne 0x45fd10
mov edx, dword [ebp - 0x11f4]
inc edi
mov dword [edx], ebx
mov dword [ebp - 0x11e8], edi
jmp 0x4605f6
push 0x1000
lea edx, [ebp - 0x1198]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [esi + 8]
xor eax, eax
add esp, 0xc
push 0
push 9
lea ecx, [ebp - 0x121c]
mov dword [ebp - 0x121c], eax
mov dword [ebp - 0x1208], eax
mov dword [ebp - 0x1204], eax
mov dword [ebp - 0x1218], eax
mov dword [ebp - 0x1214], eax
mov dword [ebp - 0x1210], eax
mov dword [ebp - 0x120c], eax
mov dword [ebp - 0x1200], eax
mov dword [ebp - 0x11fc], eax
mov dword [ebp - 0x11f8], eax
push ecx
lea eax, [ebp - 0x1198]
push edx
mov dword [ebp - 0x121c], 0x28
mov dword [ebp - 0x1208], eax
mov dword [ebp - 0x1204], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExW]
test eax, eax
jne 0x45ff62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45ff47
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x11f0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x45ff2c
cmp eax, 1
je 0x45ff2c
cmp eax, 0x80
je 0x45ff2c
cmp eax, 0x81
jne 0x45ffe1
push 0x4bcbb8
lea ecx, [ebp - 0x1240]
push ecx
mov dword [ebp - 0x1240], 0
call sub.MSVCR100.dll__CxxThrowException
push 0x4bcbb8
lea edx, [ebp - 0x12a0]
push edx
mov dword [ebp - 0x12a0], 0
call sub.MSVCR100.dll__CxxThrowException
add edi, dword [ebp - 0x1204]
test edi, edi
jle 0x45ffe1
lea eax, [edi + 1]
push eax
call fcn.00497652
mov esi, eax
add esp, 4
lea eax, [edi + 1]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
test ebx, ebx
je 0x45ffc2
mov eax, edi
sub eax, dword [ebp - 0x1204]
push eax
push ebx
push esi
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x1204]
push eax
mov edx, esi
lea ecx, [ebp - 0x1198]
sub edx, eax
push ecx
add edx, edi
push edx
call sub.MSVCR100.dll_memcpy
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 0x1c
jmp 0x45ffd9
mov eax, dword [ebp - 0x1204]
push eax
lea ecx, [ebp - 0x1198]
push ecx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ebx, esi
mov esi, dword [ebp - 0x11e0]
cmp dword [ebp - 0x1204], 0
jne 0x45fe61
mov edx, dword [ebp - 0x11f4]
inc edi
mov dword [edx], ebx
mov dword [ebp - 0x11e8], edi
jmp 0x4605f6
push 0x4bcbb8
lea eax, [ebp - 0x1248]
push eax
mov dword [ebp - 0x1248], ebx
call sub.MSVCR100.dll__CxxThrowException
push 0x4bcbb8
lea ecx, [ebp - 0x1228]
push ecx
mov dword [ebp - 0x1228], ebx
call sub.MSVCR100.dll__CxxThrowException
push 0x4bcbb8
lea edx, [ebp - 0x1250]
push edx
mov dword [ebp - 0x1250], ebx
call sub.MSVCR100.dll__CxxThrowException
push 0x4bcbb8
lea eax, [ebp - 0x1298]
push eax
mov dword [ebp - 0x1298], ebx
call sub.MSVCR100.dll__CxxThrowException
push ebx
push ebx
push ebx
push ebx
push str.Sogou_NewGame
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
jne 0x46008a
push 0x4bcbb8
lea ecx, [ebp - 0x1258]
push ecx
mov dword [ebp - 0x1258], ebx
call sub.MSVCR100.dll__CxxThrowException
movzx edx, word [esi + 0x234]
push ebx
push ebx
push 3
push ebx
push ebx
push edx
lea ecx, [esi + 0x34]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4600c1
push 0x4bcbb8
lea edx, [ebp - 0x1288]
push edx
mov dword [ebp - 0x1288], ebx
call sub.MSVCR100.dll__CxxThrowException
push ebx
push 0x84480000
lea edx, [ebp - 0x12bc]
push edx
push ebx
lea ecx, [esi + 0x1a38]
push ebx
mov dword [ebp - 0x12bc], ecx
lea ecx, [esi + 0x238]
push ecx
lea edx, [esi + 0x14]
push edx
push eax
mov dword [ebp - 0x12b8], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [esi + 8], edi
cmp edi, ebx
jne 0x460114
push 0x4bcbb8
lea eax, [ebp - 0x1260]
push eax
mov dword [ebp - 0x1260], ebx
call sub.MSVCR100.dll__CxxThrowException
lea ebx, [esi + 0x2238]
mov ecx, ebx
lea eax, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x460120
sub ecx, eax
sar ecx, 1
je 0x46016e
mov ecx, ebx
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x460136
sub ecx, eax
push SysReAllocString
sar ecx, 1
push ecx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x46016e
push 0x4bcbb8
lea ecx, [ebp - 0x1264]
push ecx
mov dword [ebp - 0x1264], eax
call sub.MSVCR100.dll__CxxThrowException
lea edx, [esi + 0x2a38]
mov eax, edx
lea ebx, [eax + 2]
xor edi, edi
jmp 0x460180
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460180
sub eax, ebx
sar eax, 1
je 0x4601d1
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460196
sub eax, ebx
push 0xa0000000
sar eax, 1
push eax
push edx
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x4601d1
push 0x4bcbb8
lea eax, [ebp - 0x126c]
push eax
mov dword [ebp - 0x126c], edi
call sub.MSVCR100.dll__CxxThrowException
mov ebx, dword [esi + 0x3a38]
cmp ebx, edi
je 0x460321
cmp dword [esi + 0x3a3c], edi
jle 0x460321
xor eax, eax
mov dword [ebp - 0x1218], eax
mov dword [ebp - 0x1214], eax
mov dword [ebp - 0x1210], eax
mov dword [ebp - 0x120c], eax
mov dword [ebp - 0x1208], eax
mov dword [ebp - 0x1204], eax
mov dword [ebp - 0x1200], eax
mov dword [ebp - 0x11fc], eax
mov dword [ebp - 0x11f8], eax
lea eax, [esi + 0x1238]
mov dword [ebp - 0x121c], 0x28
mov dword [ebp - 0x1218], edi
mov dword [ebp - 0x1214], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460242
sub eax, edx
sar eax, 1
push ebx
lea ecx, [ebp - 0x11d0]
mov dword [ebp - 0x1210], eax
call fcn.004037c0
lea ecx, [ebp - 0x11d0]
push ecx
lea edx, [ebp - 0x11b4]
push edx
mov byte [ebp - 4], 3
call fcn.00482df0
add esp, 8
cmp dword [ebp - 0x11a0], 0x10
mov byte [ebp - 4], 4
jb 0x460298
mov eax, dword [ebp - 0x11b4]
mov dword [ebp - 0x1208], eax
jmp 0x4602a4
lea ecx, [ebp - 0x11b4]
mov dword [ebp - 0x1208], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x11a4]
push edi
push edi
push edi
lea eax, [ebp - 0x121c]
push eax
push ecx
mov dword [ebp - 0x1204], edx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x4602df
push 0x4bcbb8
lea edx, [ebp - 0x12a8]
push edx
mov dword [ebp - 0x12a8], edi
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x11b4]
call fcn.00403800
lea ecx, [ebp - 0x11d0]
mov byte [ebp - 4], 0
call fcn.00403800
mov edx, dword [esi + 8]
push edi
push edi
push edi
push edx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x46034a
push 0x4bcbb8
lea eax, [ebp - 0x122c]
push eax
mov dword [ebp - 0x122c], edi
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [esi + 8]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x4602f9
push 0x4bcbb8
lea ecx, [ebp - 0x1270]
push ecx
mov dword [ebp - 0x1270], edi
call sub.MSVCR100.dll__CxxThrowException
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x1234]
push edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x1220]
push eax
mov word [ebp - 0x54], cx
lea ecx, [ebp - 0x54]
push ecx
push 0x13
push edx
mov dword [ebp - 0x1234], edi
mov dword [ebp - 0x1220], 0x10
call ebx
test eax, eax
jne 0x4603c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4603c3
push 0x4bcbb8
lea eax, [ebp - 0x123c]
push eax
mov dword [ebp - 0x123c], edi
call sub.MSVCR100.dll__CxxThrowException
cmp dword [ebp - 0x1220], 6
jne 0x4605f6
lea ecx, [ebp - 0x54]
push 0x4a5fb8
push ecx
call dword [sym.imp.MSVCR100.dll_wcsstr]
lea edx, [ebp - 0x54]
add esp, 8
cmp eax, edx
jne 0x4605f6
push 0x7e
lea ecx, [ebp - 0x116]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x1244], edi
mov word [ebp - 0x118], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1244]
push edx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x11e4]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 5
push edx
mov dword [ebp - 0x11e4], 0x40
call ebx
test eax, eax
jne 0x460570
push 0x100000
mov dword [ebp - 0x11d4], 0x100000
call fcn.00497652
add esp, 4
push 0x100000
mov ebx, eax
push 0
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x11d8], edi
mov edi, edi
push 0x40
lea eax, [ebp - 0x97]
push 0
push eax
mov dword [ebp - 0x11dc], 0
mov byte [ebp - 0x98], 0
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [ebp - 0x11dc]
push ecx
push 0x40
lea edx, [ebp - 0x98]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x460470
mov eax, dword [ebp - 0x11dc]
test eax, eax
je 0x46055d
add eax, edi
cmp eax, dword [ebp - 0x11d4]
jl 0x460530
mov ecx, dword [ebp - 0x11d4]
lea eax, [ecx + ecx]
push eax
mov dword [ebp - 0x11d4], eax
call fcn.00497652
mov edx, dword [ebp - 0x11d4]
add esp, 4
push edx
mov esi, eax
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
jmp 0x460500
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460500
sub eax, edx
push eax
lea eax, [esi + edi]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, dword [ebp - 0x11dc]
mov ebx, esi
mov esi, dword [ebp - 0x11e0]
jmp 0x460468
mov edi, dword [ebp - 0x11d8]
add edi, ebx
mov ecx, 0x10
lea esi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x11d8]
add edi, dword [ebp - 0x11dc]
mov esi, dword [ebp - 0x11e0]
jmp 0x460468
mov edx, dword [ebp - 0x11f4]
mov dword [ebp - 0x11e8], edi
mov dword [edx], ebx
jmp 0x4605f6
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
inc eax
push eax
mov dword [ebp - 0x11d8], eax
call fcn.00497652
mov ecx, dword [ebp - 0x11d8]
add esp, 8
push ecx
mov ebx, eax
push edi
push ebx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x11d8]
mov ecx, dword [esi + 8]
add esp, 0xc
lea edx, [ebp - 0x11d8]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4605d4
push 0x4bcbb8
lea edx, [ebp - 0x1254]
push edx
mov dword [ebp - 0x1254], edi
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x11d8]
mov ecx, dword [ebp - 0x11f4]
mov dword [ebp - 0x11e8], eax
mov dword [ecx], ebx
jmp 0x4605f6
mov eax, dword [ebp - 0x1224]
test eax, eax
je 0x460609
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esi]
test esi, esi
je 0x460618
push 0
push esi
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [ebp - 0x11e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret