Function at 0x1002b3a0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036b48
mov eax, dword fs:[0]
push eax
mov eax, 0x5920
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58d8], ecx
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
push edx
mov dword [ebp - 0x5924], eax
mov eax, dword [ebp + 0x2c]
push 0
push ecx
mov dword [ebp - 0x58f4], ecx
mov dword [ebp - 0x58e0], edx
mov dword [ebp - 0x5904], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x58f4], 0
jne 0x1002b43e
mov esi, dword [ebp - 0x58d8]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002b437
mov eax, dword [ecx]
push str.Returen_Buffer_is_null
push 0x32e
push 0x64
push ecx
call dword [eax]
add esp, 0x10
xor eax, eax
jmp 0x1002c08c
push dword [ebp - 0x58e0]
call sub.mfc140.dll_Ordinal_265
push dword [ebp - 0x58e0]
mov dword [ebp - 0x58e4], eax
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x1038]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x338]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x238]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x1000
lea eax, [ebp - 0x2838]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x40
lea eax, [ebp - 0x3838]
push 0x1000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1038]
add esp, 0xc
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1002b4d0
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x338]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1002b4f0
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x238]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1002b510
mov ecx, dword [ebp - 0x58d8]
push esi
call fcn.10030e60
lea esi, [ebp - 0x2838]
mov edx, eax
sub esi, eax
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x1002b533
push eax
call sub.mfc140.dll_Ordinal_266
mov ecx, dword [ebp - 0x58d8]
add esp, 4
push edi
call fcn.10030e60
lea esi, [ebp - 0x3838]
mov edx, eax
sub esi, eax
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x1002b560
push eax
call sub.mfc140.dll_Ordinal_266
mov eax, dword [str.POST]
xor edi, edi
mov dword [ebp - 0x18], eax
mov ecx, str.application_xml__text_html___
mov al, byte [0x1003a470]
mov dword [ebp - 0x58e8], edi
mov dword [ebp - 0x590c], edi
mov dword [ebp - 0x5900], edi
mov dword [ebp - 0x5920], edi
mov dword [ebp - 0x5918], edi
mov dword [ebp - 0x5928], edi
mov edi, dword [ebp - 0x58d8]
mov byte [ebp - 0x14], al
mov eax, str.application_json__text_json___
push 0x100
push 0
test byte [edi + 0xc], 2
mov dword [ebp - 0x58dc], 0
cmove eax, ecx
mov dword [ebp - 0x58f8], 0
mov dword [ebp - 0x592c], eax
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x5910], 0
mov dword [ebp - 0x58ec], 0x7530
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
add esp, 0x10
test al, 1
je 0x1002b635
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
movups xmmword [ebp - 0x138], xmm0
movups xmm0, xmmword [0x10039408]
movups xmmword [ebp - 0x128], xmm0
movups xmm0, xmmword [0x10039418]
movups xmmword [ebp - 0x118], xmm0
test al, 2
je 0x1002b6ce
lea ecx, [ebp - 0x138]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b646
sub ecx, edx
je 0x1002b68d
lea ecx, [ebp - 0x138]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002b658
mov eax, dword [str._application_json]
mov dword [ecx], eax
mov eax, dword [0x1003a4bc]
mov dword [ecx + 4], eax
mov eax, dword [0x1003a4c0]
mov dword [ecx + 8], eax
mov eax, dword [0x1003a4c4]
mov dword [ecx + 0xc], eax
mov ax, word [0x1003a4c8]
mov word [ecx + 0x10], ax
jmp 0x1002b6ce
movups xmm0, xmmword [str.Content_Type:_application_json]
mov eax, dword [0x1003a4e4]
mov dword [ebp - 0x120], eax
mov ax, word [0x1003a4e8]
movups xmmword [ebp - 0x138], xmm0
mov word [ebp - 0x11c], ax
movq xmm0, qword [0x1003a4dc]
mov al, byte [0x1003a4ea]
movq qword [ebp - 0x128], xmm0
mov byte [ebp - 0x11a], al
push 0x100
lea eax, [ebp - 0x438]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x438]
push eax
call fcn.1001c0c0
add esp, 0x10
xor ecx, ecx
mov al, byte [ebp + ecx - 0x438]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x639], al
test al, al
jne 0x1002b6f2
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x538]
push str.Accept_Language:__s
push eax
call fcn.1001a8c0
mov eax, dword [ebp + 0x34]
add esp, 0x10
mov dword [ebp - 0x58ec], eax
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x2838]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1839], al
test al, al
jne 0x1002b740
lea eax, [ebp - 0x1838]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
push 4
lea eax, [ebp - 0x1838]
push str.HTTP
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0x10
test eax, eax
je 0x1002b79a
lea eax, [ebp - 0x2838]
push eax
lea eax, [ebp - 0x1438]
push str.http:___s
push eax
call fcn.1001a8c0
add esp, 0xc
jmp 0x1002b7b5
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x2838]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x1439], al
test al, al
jne 0x1002b7a0
lea eax, [ebp - 0x5914]
mov ecx, edi
push eax
lea eax, [ebp - 0x5038]
push eax
push 0
push 0
lea eax, [ebp - 0x5838]
push eax
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1438]
push eax
call fcn.1002d8b0
test eax, eax
jne 0x1002b824
mov eax, dword [ebp - 0x58e4]
test eax, eax
je 0x1002b7fe
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x1002b437
mov eax, dword [ecx]
push str.URL_Paring_Failed
push 0x3a5
push 0x64
push ecx
call dword [eax]
add esp, 0x10
xor eax, eax
jmp 0x1002c08c
cmp byte [ebp - 0x1038], 0
je 0x1002b858
push dword [ebp + 0xc]
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x838]
push str.http:___s:_d
push eax
call fcn.1001a8c0
mov edi, 3
add esp, 0x10
mov dword [ebp - 0x5904], edi
jmp 0x1002b85e
mov edi, dword [ebp - 0x5904]
push 0x98
lea eax, [ebp - 0x58d0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x58d4]
add esp, 0xc
mov dword [ebp - 0x58d4], 0x9c
push eax
call esi
test eax, eax
jne 0x1002b8ac
lea eax, [ebp - 0x58d4]
mov dword [ebp - 0x58d4], 0x94
push eax
call esi
test eax, eax
je 0x1002b437
lea ecx, [ebp - 0x591c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], 0
mov dword [ebp - 0x58f0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1002b8f6
lea eax, [ebp - 0x58f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x58f0], 0
je 0x1002b910
push str.Win64__x64_
lea ecx, [ebp - 0x591c]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
lea ecx, [ebp - 0x58fc]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
lea ecx, [ebp - 0x58fc]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push str.Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko
lea ecx, [ebp - 0x58fc]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
lea ecx, [ebp - 0x58fc]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push 0
push 0
cmp edi, 3
jne 0x1002b9ac
lea ecx, [ebp - 0x838]
push ecx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x5908], eax
test eax, eax
jne 0x1002b9c4
mov eax, dword [ebp - 0x58e4]
test eax, eax
je 0x1002b983
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov edi, dword [ebp - 0x58d8]
mov esi, dword [edi + 0x14]
test esi, esi
je 0x1002c070
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_Open_Failed__Error._d
push 0x3cd
jmp 0x1002c066
push 0
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x5908], eax
test eax, eax
je 0x1002c033
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x5914]
lea ecx, [ebp - 0x738]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x58f0], edi
test edi, edi
je 0x1002bf91
lea eax, [ebp - 0x5038]
push eax
lea eax, [ebp - 0x5838]
push eax
lea eax, [ebp - 0x4838]
push str._s_s
push eax
call fcn.1001a8c0
lea eax, [ebp - 0x38]
mov esi, str.https
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr]
add esp, 0x14
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1002ba43
test cl, cl
je 0x1002ba3f
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1002ba43
add eax, 2
add esi, 2
test cl, cl
jne 0x1002ba23
xor eax, eax
jmp 0x1002ba48
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ba58
cmp dword [ebp - 0x5914], 0x1bb
jne 0x1002ba62
mov eax, dword [ebp + 0x30]
or eax, 0x803000
jmp 0x1002ba65
mov eax, dword [ebp + 0x30]
push 0
or eax, 0x400000
push eax
mov dword [ebp + 0x30], eax
lea eax, [ebp - 0x592c]
push eax
push 0
push 0
lea eax, [ebp - 0x4838]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x58dc], edi
test edi, edi
je 0x1002bf91
lea ecx, [ebp - 0x538]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002baa6
push 0x20000000
sub ecx, edx
lea eax, [ebp - 0x538]
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [ebp - 0x58d8]
push edi
call fcn.10025910
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp - 0x58ec]
push 4
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 0x58ec]
push eax
push 5
push edi
call esi
push 4
lea eax, [ebp - 0x58ec]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 0x58ec]
push eax
push 7
push edi
call esi
push 4
lea eax, [ebp - 0x58ec]
push eax
push 8
push edi
call esi
cmp byte [ebp - 0x338], 0
je 0x1002bb49
lea ecx, [ebp - 0x338]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bb30
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x338]
push eax
push 0x2b
push edi
call esi
cmp byte [ebp - 0x238], 0
je 0x1002bb80
lea ecx, [ebp - 0x238]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bb60
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x238]
push eax
push 0x2c
push edi
call esi
nop dword [eax]
lea ecx, [ebp - 0x3838]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bb90
sub ecx, edx
lea edx, [ebp - 0x138]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1002bba2
push ecx
lea eax, [ebp - 0x3838]
sub edx, esi
push eax
push edx
lea eax, [ebp - 0x138]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x58e8], eax
test eax, eax
jne 0x1002bc46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [edi - 0x2ee2]
cmp ecx, 0x37
ja case.0x1002bbee.12003
movzx ecx, byte [ecx + 0x1002c0bc]
jmp dword [ecx*4 + 0x1002c0ac]
mov esi, dword [ebp - 0x58dc]
lea eax, [ebp - 0x58f8]
push eax
lea eax, [ebp - 0x5910]
mov dword [ebp - 0x58f8], 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x5910], 0x180
lea eax, [ebp - 0x5910]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp edi, 0x2ee7
mov edi, esi
jne 0x1002bb80
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x58f8]
push 0
push eax
lea eax, [ebp - 0x5920]
mov dword [ebp - 0x58f8], 4
push eax
push 0x20000013
push edi
call esi
mov ecx, dword [ebp - 0x5924]
mov edi, eax
mov eax, dword [ebp - 0x5920]
mov dword [ecx], eax
test edi, edi
je 0x1002bf97
test eax, eax
je 0x1002be30
cmp eax, 0xc8
je 0x1002be30
mov esi, dword [ebp - 0x58d8]
xor edi, edi
mov dword [ebp - 0x58e8], edi
mov esi, dword [esi + 0x14]
test esi, esi
je 0x1002be74
mov esi, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x58d8]
push str.Http_Query_Info__Error._d__status._d
push 0x461
push 0x64
push dword [eax + 0x14]
call dword [esi]
add esp, 0x18
jmp 0x1002be74
mov eax, dword [ebp - 0x5904]
test eax, eax
jne 0x1002bd13
push dword [ebp - 0x58dc]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x58f0]
call edi
push dword [ebp - 0x5908]
call edi
mov edi, 1
mov dword [ebp - 0x5904], edi
jmp 0x1002b931
cmp eax, 3
jne 0x1002bdee
push dword [ebp - 0x58dc]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x58f0]
call edi
push dword [ebp - 0x5908]
call edi
xor edi, edi
mov dword [ebp - 0x5904], edi
jmp 0x1002b931
mov eax, dword [ebp - 0x58d8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1002bd69
mov eax, dword [ecx]
push edi
push str.Host_Not_Found._d
push 0x417
push 0x64
push ecx
call dword [eax]
add esp, 0x14
push dword [ebp - 0x58e0]
mov esi, dword [ebp - 0x58f4]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push edi
push str.GetLastError_:__d
push esi
call fcn.1001a8c0
add esp, 0x18
jmp 0x1002c070
mov eax, dword [ebp - 0x58e4]
test eax, eax
je 0x1002bda4
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov eax, dword [ebp - 0x58d8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1002bdc6
mov eax, dword [ecx]
push edi
push str.Send_Request_Failed._d
push 0x423
push 0x64
push ecx
call dword [eax]
add esp, 0x14
push dword [ebp - 0x58e0]
mov esi, dword [ebp - 0x58f4]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push edi
push str.WinINet_GetLastError_:__d
push esi
call fcn.1001a8c0
add esp, 0x18
jmp 0x1002c070
mov eax, dword [ebp - 0x58e4]
test eax, eax
je 0x1002be01
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov eax, dword [ebp - 0x58d8]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x1002bdc6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x58d8]
push str.Send_Request_Failed._d
push 0x440
push 0x64
push dword [eax + 0x14]
call dword [esi]
jmp 0x1002bdc3
push 0
lea eax, [ebp - 0x58f8]
mov dword [ebp - 0x58f8], 4
push eax
lea eax, [ebp - 0x5918]
push eax
push 5
push dword [ebp - 0x58dc]
call esi
mov edi, eax
mov dword [ebp - 0x58e8], edi
test edi, edi
jne 0x1002be74
cmp dword [ebp - 0x5918], edi
mov eax, 1
cmove edi, eax
mov dword [ebp - 0x58e8], edi
push 0x400
lea eax, [ebp - 0xc38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x5900]
add esp, 0xc
push eax
push 0x400
lea eax, [ebp - 0xc38]
push eax
push dword [ebp - 0x58dc]
call esi
test eax, eax
je 0x1002bf50
mov edi, dword [ebp - 0x58dc]
nop dword [eax]
mov ecx, dword [ebp - 0x5900]
test ecx, ecx
je 0x1002bf4a
mov edx, dword [ebp - 0x590c]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x58e0]
jb 0x1002beee
mov ecx, dword [ebp - 0x58e0]
sub ecx, edx
dec ecx
mov dword [ebp - 0x5900], ecx
push ecx
lea eax, [ebp - 0xc38]
push eax
mov eax, dword [ebp - 0x58e4]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 0x400
lea eax, [ebp - 0xc38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x590c]
add esp, 0x18
add eax, dword [ebp - 0x5900]
mov dword [ebp - 0x590c], eax
lea eax, [ebp - 0x5900]
push eax
push 0x400
lea eax, [ebp - 0xc38]
push eax
push edi
call esi
test eax, eax
jne 0x1002bec0
mov edi, dword [ebp - 0x58e8]
cmp dword [ebp - 0x5918], 0
jbe 0x1002bf97
cmp dword [ebp - 0x590c], 0
ja 0x1002bf97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x58e0]
mov edi, dword [ebp - 0x58e4]
mov esi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push esi
push str.GetLastError_:__d
push edi
call fcn.1001a8c0
add esp, 0x18
xor edi, edi
jmp 0x1002bf97
mov edi, dword [ebp - 0x58e8]
push dword [ebp - 0x58dc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x58f0]
call esi
push dword [ebp - 0x5908]
call esi
push dword [ebp - 0x58e4]
mov ecx, dword [ebp - 0x58d8]
call fcn.10030d60
mov esi, eax
mov edx, esi
lea eax, [edx + 1]
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1002bfd0
sub edx, eax
mov eax, dword [ebp - 0x58e0]
cmp edx, eax
jae 0x1002bfff
mov edx, dword [ebp - 0x58f4]
mov ecx, esi
sub edx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x1002bff0
jmp 0x1002c011
dec eax
push eax
push esi
push dword [ebp - 0x58f4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
test esi, esi
je 0x1002c01e
push esi
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov eax, dword [ebp - 0x58e4]
test eax, eax
je 0x1002c072
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
jmp 0x1002c072
mov eax, dword [ebp - 0x58e4]
test eax, eax
je 0x1002c046
push eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov edi, dword [ebp - 0x58d8]
mov esi, dword [edi + 0x14]
test esi, esi
je 0x1002c070
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_Open_Failed__Error._d
push 0x3d8
push 0x64
push dword [edi + 0x14]
call dword [esi]
add esp, 0x14
xor edi, edi
lea ecx, [ebp - 0x58fc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x591c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0x30