Function at 0x4ee910
Capabilities:
Connect to http server
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x7004]
mov eax, 0x7004
call fcn.00532f70
push 0xffffffffffffffff
push 0x540a04
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x5c403c]
xor eax, ebp
mov dword [ebp + 0x7000], 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, ecx
mov dword [ebp - 0x88], esi
mov ecx, dword [0x5c6f94]
call fcn.005120f0
mov ebx, eax
mov dword [ebp - 0x18], 0x40c0200
mov dword [ebp - 0x44], 0xffffffff
lea ecx, [ebp - 0xac]
call sub.mfc90u.dll_CFile::CFile
mov dword [ebp - 4], 0
push 0x38
push 0
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCR90.dll_memset
xor ecx, ecx
mov word [ebp + 0x4800], cx
push 0xffe
push ecx
lea edx, [ebp + 0x4802]
push edx
call sub.MSVCR90.dll_memset
xor eax, eax
mov word [ebp + 0x4000], ax
push 0x7fe
push eax
lea ecx, [ebp + 0x4002]
push ecx
call sub.MSVCR90.dll_memset
xor edx, edx
mov word [ebp + 0x5800], dx
push 0x7fe
push edx
lea eax, [ebp + 0x5802]
push eax
call sub.MSVCR90.dll_memset
xor ecx, ecx
mov word [ebp + 0x6000], cx
push 0xffe
push ecx
lea edx, [ebp + 0x6002]
push edx
call sub.MSVCR90.dll_memset
add esp, 0x3c
mov dword [ebp - 0x110], 0x1e
lea eax, [ebp + 0x4000]
mov dword [ebp - 0x100], eax
mov ecx, 0x3ff
mov dword [ebp - 0xfc], ecx
lea edx, [ebp + 0x4800]
mov dword [ebp - 0xe4], edx
mov eax, 0x7ff
mov dword [ebp - 0xe0], eax
lea edx, [ebp + 0x5800]
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], ecx
lea ecx, [ebp + 0x6000]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax - 0xc]
lea edx, [ebp - 0x110]
push edx
mov edx, dword [esi + 0x1c]
shl edx, 0x1b
not edx
and edx, 0x80000000
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4eea95
mov edi, 0x80070057
jmp 0x4ef17b
mov edi, 0x50
mov ecx, str.https
lea eax, [ebp + 0x5800]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4eeacb
test dx, dx
je 0x4eeac7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4eeacb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4eeaa5
xor eax, eax
jmp 0x4eead0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4eeaf0
mov edi, 0x1bb
mov dword [ebp - 0x18], 0x48c0200
test dword [esi + 0x1c], 0x100
je 0x4eeaf0
mov dword [ebp - 0x18], 0x48c2200
mov ax, word [ebp - 0xf8]
test ax, ax
jbe 0x4eeaff
movzx edi, ax
push 0
push 0
push 3
push 0
push 0
push edi
lea eax, [ebp + 0x4000]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x4eeb47
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4eeb33
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x4ef16d
mov edi, 0x80004005
jmp 0x4ef16d
push 0x58a7e0
lea ecx, [ebp - 0x28]
call dword [0x55a38c]
mov byte [ebp - 4], 1
lea edi, [esi + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4eeb96
mov eax, 0x5621e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4eeb8d
test dx, dx
je 0x4eeb89
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4eeb8d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4eeb67
xor eax, eax
jmp 0x4eeb92
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4eebcc
cmp dword [esi + 0x10], 0
je 0x4eebcc
push 0x55ad28
push 0x800
lea ecx, [ebp + 0x4800]
push ecx
mov ebx, dword [sym.imp.MSVCR90.dll_wcscat_s]
call ebx
mov edx, dword [esi + 0x10]
push edx
push 0x800
lea eax, [ebp + 0x4800]
push eax
call ebx
add esp, 0x18
jmp 0x4eebf2
cmp word [ebp + 0x6000], 0x23
je 0x4eebf2
lea ecx, [ebp + 0x6000]
push ecx
push 0x800
lea edx, [ebp + 0x4800]
push edx
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0xc
test byte [esi + 0x1c], 0x20
je 0x4eec05
push 0x58a7e4
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [edi]
xor edi, edi
push edi
mov ecx, dword [ebp - 0x18]
push ecx
push edi
push edi
push edi
lea edx, [ebp + 0x4800]
push edx
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, edi
jne 0x4eec5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4eec40
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x4eec4b
mov edi, 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4ef16d
mov dword [ebp - 0x20], 0xffffffff
test byte [esi + 0x1c], 4
je 0x4eec83
mov eax, dword [esi + 0x18]
push edi
push 0x1001
push eax
lea ecx, [ebp - 0xac]
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x4eec2c
mov byte [ebp - 4], 2
test byte [esi + 0x1c], 0x80
jne 0x4eeca9
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x4eedb2
mov dword [ebp - 0xd4], edi
xor eax, eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xd4], 0x28
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xcc], eax
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xc8], eax
push edi
push edi
push edi
lea eax, [ebp - 0xd4]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x4eeda6
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 0x10
push 0x10000
call sub.mfc90u.dll_new__
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x10000
mov eax, dword [esi]
mov ecx, dword [esi + 0x30]
push ecx
push eax
push 4
mov edx, dword [esi + 0x24]
push edx
lea edi, [ebp - 0x40]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
call fcn.004ef200
test eax, eax
jne 0x4eed97
xor edi, edi
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4eed97
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x48]
jne 0x4eed97
cmp eax, edi
je 0x4eed97
mov dword [ebp - 0x34], edi
jmp 0x4eed48
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.mfc90u.dll_delete__
add esp, 4
mov ebx, dword [ebp - 0x1c]
xor edi, edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
cmp eax, edi
je 0x4ef0df
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x2c], 4
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esi + 0x1c]
test al, 0x20
jne 0x4eefc8
test al, 0x40
je 0x4eeee9
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x4c], edi
push 4
call sub.mfc90u.dll_new__
add esp, 4
cmp eax, edi
je 0x4eee21
mov dword [eax], 0
mov edi, eax
jmp 0x4eee23
xor edi, edi
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x18]
push eax
push edi
push 0x16
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x18], 0
jbe 0x4eeee0
push edi
call sub.mfc90u.dll_delete__
mov eax, dword [ebp - 0x18]
inc eax
xor ebx, ebx
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call sub.mfc90u.dll_new__
add esp, 8
mov edi, eax
test edi, edi
je 0x4eee79
push ebx
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], edi
jmp 0x4eee80
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp - 0x14]
push edi
push 0x16
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x84], 0x10
mov dword [ebp - 0x80], edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x7c], edx
mov eax, dword [esi]
mov ecx, dword [esi + 0x30]
push ecx
push eax
push 3
mov edx, dword [esi + 0x24]
push edx
lea edi, [ebp - 0x84]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
call fcn.004ef200
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push edi
call sub.mfc90u.dll_delete__
add esp, 4
mov ecx, dword [ebp - 0x20]
lea esp, [esp]
test ecx, ecx
je 0x4ef0c2
mov byte [ebp], 0
push 0x3fff
push 0
lea eax, [ebp + 1]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x3fff
lea edx, [ebp]
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4ef0c2
mov ecx, dword [ebp - 0x20]
cmp ecx, 1
jb 0x4ef0c2
test ecx, ecx
je 0x4eefb1
test byte [esi + 0x1c], 4
je 0x4eef54
push ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0xac]
call sub.mfc90u.dll_CFile::Write
mov ecx, dword [ebp - 0x20]
test byte [esi + 0x1c], 8
je 0x4eefb1
xor eax, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x98], 0x10
lea edx, [ebp]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x30]
push ecx
push eax
push 1
mov edx, dword [esi + 0x24]
push edx
lea edi, [ebp - 0x98]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
call fcn.004ef200
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, 0x19000
jg 0x4ef0c2
jmp 0x4eeef0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x58], edi
push 4
call sub.mfc90u.dll_new__
add esp, 4
cmp eax, edi
je 0x4eefe4
mov dword [eax], edi
jmp 0x4eefe6
xor eax, eax
mov edi, eax
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edi
push 0x16
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x14], 0
jbe 0x4ef0b9
push edi
call sub.mfc90u.dll_delete__
mov eax, dword [ebp - 0x14]
inc eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or eax, ecx
mov dword [ebp - 0x2c], eax
push eax
call sub.mfc90u.dll_new__
add esp, 8
mov edi, eax
test edi, edi
je 0x4ef044
mov eax, dword [ebp - 0x2c]
push eax
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x4ef046
xor edi, edi
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
push 0x16
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test byte [esi + 0x1c], 4
je 0x4ef071
mov eax, dword [ebp - 0x14]
push eax
push edi
lea ecx, [ebp - 0xac]
call sub.mfc90u.dll_CFile::Write
test byte [esi + 0x1c], 8
je 0x4ef0b9
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], 0x10
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], edx
mov eax, dword [esi]
mov ecx, dword [esi + 0x30]
push ecx
push eax
push 1
mov edx, dword [esi + 0x24]
push edx
lea edi, [ebp - 0x74]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
call fcn.004ef200
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
push edi
call sub.mfc90u.dll_delete__
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4ef16d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4ef0f3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jl 0x4ef104
mov edi, 0x80004005
mov dword [ebp - 0x24], edi
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [ebp - 4], 0
jmp 0x4ef16d
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4ef17b
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test byte [esi + 0x1c], 4
je 0x4ef18c
lea ecx, [ebp - 0xac]
call sub.mfc90u.dll_CFile::Close
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x64], 0xc
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edi
mov eax, dword [esi]
mov edx, dword [esi + 0x30]
push edx
push eax
push 2
mov eax, dword [esi + 0x24]
push eax
lea edi, [ebp - 0x64]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
call fcn.004ef200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00531e54
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7000]
xor ecx, ebp
call fcn.00532776
add ebp, 0x7004
mov esp, ebp
pop ebp
ret