Function at 0x4e7230
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ddeb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x74fc
call fcn.005024e0
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x74f8], eax
push ebx
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x7510]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ebx
cmp eax, 0xc
ja case.0x4e7287.8
jmp dword [eax*4 + 0x4e7a5c]
mov esi, ebx
mov dword [ebx + 4], 2
call fcn.004e7bc0
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4e74c9
mov eax, dword [ebx + 0x5478]
test eax, eax
je 0x4e72c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x5478], 0
movzx eax, byte [ebx + 0x5518]
neg eax
sbb eax, eax
and eax, 9
add eax, 3
cmp byte [ebx + 0x553c], 0
mov dword [ebx + 4], eax
mov esi, 0x8408c300
je 0x4e72ed
mov esi, 0x8428c300
cmp dword [ebx + 0x2018], 4
jne 0x4e72fc
or esi, 0x803180
mov ecx, dword [ebx + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x14]
lea ecx, [ebx + 0x281c]
push edx
call fcn.00406c40
lea edx, [ebx + 0x342c]
lea edi, [esp + 0x14]
mov dword [esp + 0x7518], 0
call fcn.004179a0
cmp byte [ebx + 0x5518], 0
mov eax, str.POST
jne 0x4e7346
mov eax, 0x522368
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0xc]
push ebx
push esi
push 0
push 0
push str.HTTP_1.0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4e74bb
xor eax, eax
push 0x208e
push eax
lea ecx, [esp + 0x547e]
push ecx
mov dword [esp + 0x40], 0x28
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov word [esp + 0x5480], ax
call fcn.004f0190
add esp, 0xc
lea edx, [esp + 0x5474]
push edx
mov ecx, ebx
call fcn.004e7d30
lea eax, [esp + 0x5474]
mov dword [esp + 0x3c], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e73d5
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
mov edx, dword [ebx + 0x10]
push 5
sar eax, 1
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], 0x7530
call edi
cmp dword [ebx + 0x2018], 4
jne 0x4e7425
mov ecx, dword [ebx + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1f
push ecx
mov dword [esp + 0x28], 0x803180
call edi
cmp dword [ebx + 0x54e0], 0
je 0x4e7469
cmp dword [ebx + 0x54ec], 0
je 0x4e7469
mov eax, dword [ebx + 0x54f0]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebx + 0x10]
push 0x2b
push eax
call edi
test eax, eax
je 0x4e7469
mov eax, dword [ebx + 0x54f4]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebx + 0x10]
push 0x2c
push eax
call edi
cmp byte [ebx + 0x5518], 0
je 0x4e747c
mov ecx, dword [ebx + 0x5510]
mov dword [esp + 0x50], ecx
mov eax, dword [ebx + 0x10]
push ebx
push 1
push 0
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x4e74ae
mov ecx, dword [ebx + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x14]
call fcn.00406cf0
xor eax, eax
jmp 0x4e74c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4e74a1
lea ecx, [esp + 0x14]
call fcn.00406cf0
mov eax, 4
mov ecx, dword [esp + 0x7510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x74f8]
xor ecx, esp
call fcn.004ea10a
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x5514], 0x10
jb 0x4e74fe
mov esi, dword [ebx + 0x5500]
jmp 0x4e7504
lea esi, [ebx + 0x5500]
mov edx, dword [ebx + 0x551c]
cmp edx, dword [ebx + 0x5510]
jb 0x4e751d
mov dword [ebx + 4], 3
xor eax, eax
jmp 0x4e74c9
mov eax, dword [ebx + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebx + 0x551c]
mov eax, dword [ebx + 0x5510]
sub eax, ecx
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ebx + 0x10]
add ecx, esi
push ecx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4e7575
mov ecx, dword [ebx + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x14]
add dword [ebx + 0x551c], edx
xor eax, eax
jmp 0x4e74c9
mov eax, dword [esp + 0x14]
add dword [ebx + 0x551c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
and eax, 4
jmp 0x4e74c9
mov ecx, dword [ebx + 0x5474]
push ecx
mov dword [ebx + 4], 4
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebx + 0x10]
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x4e75d2
mov eax, dword [ebx + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x4e74c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x4e74aa
call esi
jmp case.0x4e7287.8
mov dword [ebx + 0x54d8], 0
mov byte [ebx + 0x54dc], 0
call fcn.004e80d0
mov eax, dword [ebx + 0x54a4]
mov edx, dword [ebx + 0x5430]
mov ecx, dword [ebx + 0x54a0]
mov dword [esp + 0x18], edx
test eax, eax
jl 0x4e76bd
jg 0x4e762a
test ecx, ecx
jbe 0x4e76bd
xor esi, esi
cmp dword [ebx + 0x549c], esi
jl 0x4e7714
jg 0x4e7646
cmp dword [ebx + 0x5498], esi
jbe 0x4e7714
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x10]
lea ebx, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.004e83c0
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 0x5498]
jne case.0x4e7287.8
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x549c]
jne case.0x4e7287.8
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x54a0]
jne case.0x4e7287.8
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 0x54a4]
jne case.0x4e7287.8
mov edx, dword [esp + 0x18]
mov ebx, esi
cmp dword [ebx + 0x547c], 0
jne 0x4e772d
cmp edx, 0xce
je 0x4e76de
cmp edx, 0xc8
je 0x4e76de
cmp edx, 0xc9
jne 0x4e772d
mov ecx, dword [ebx + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push ecx
mov dword [ebx + 4], 5
mov dword [esp + 0x28], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, byte [ebx + 0x553c]
neg eax
sbb eax, eax
and eax, 3
inc eax
jmp 0x4e74c9
cmp ecx, dword [ebx + 0x5438]
jne case.0x4e7287.8
cmp eax, dword [ebx + 0x543c]
je 0x4e76bd
jmp case.0x4e7287.8
cmp edx, 0x1f4
je 0x4e7868
test edx, edx
je 0x4e7868
cmp edx, 0x190
je 0x4e7868
cmp edx, 0x12e
je 0x4e7769
cmp edx, 0x12f
je 0x4e7769
cmp edx, 0x12d
jne case.0x4e7287.8
mov edx, dword [ebx + 0x54a8]
cmp edx, dword [ebx + 0x54ac]
jge case.0x4e7287.8
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x547c]
push edx
push 0x21
push eax
mov dword [esp + 0x30], 0x2000
mov dword [esp + 0x2c], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je case.0x4e7287.8
lea esi, [esp + 0x5c]
lea edi, [esp + 0x5474]
call fcn.004e85e0
test eax, eax
je case.0x4e7287.8
cmp byte [ebx + 0x553c], 0
je 0x4e782f
mov esi, dword [ebx + 0x5470]
test esi, esi
je 0x4e782f
lea eax, [esp + 0x5c]
mov dword [ebx + 0x545c], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e77f0
sub eax, edx
sar eax, 1
add eax, eax
mov dword [ebx + 0x5460], eax
add eax, 2
cmp eax, 0xfff
jb 0x4e7816
mov eax, 0xfff
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.004ec133
add esp, 0xc
mov eax, 3
jmp 0x4e74c9
push 0x5418
lea edx, [esp + 0x60]
push edx
lea eax, [ebx + 0x14]
push eax
call fcn.004f1f90
add esp, 0xc
push 1
mov esi, ebx
call fcn.004e7a90
test eax, eax
je 0x4e7859
mov dword [ebx + 4], 1
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4e74c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov esi, ebx
call fcn.004e7a90
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4e74c9
mov ecx, dword [ebx + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea ecx, [ebx + 0x5448]
mov dword [ebx + 4], 6
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov edx, dword [ebx + 0x5470]
mov eax, dword [ebx + 0x5494]
mov dword [ebx + 0x545c], edx
mov edx, dword [ebx + 0x5490]
mov dword [ecx], 0x28
mov dword [ebx + 0x5460], 0x1fff
test eax, eax
jl 0x4e7938
jg 0x4e78ef
test edx, edx
jbe 0x4e7938
mov esi, dword [ebx + 0x549c]
cmp esi, eax
mov edi, dword [ebx + 0x5498]
jl 0x4e790d
jg 0x4e7905
cmp edi, edx
jbe 0x4e790d
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x4e7932
sub edx, edi
sbb eax, esi
test eax, eax
jg 0x4e7925
jl 0x4e791f
cmp edx, 0x1fff
jae 0x4e7925
mov dword [esp + 0x28], eax
jmp 0x4e7932
mov edx, 0x1fff
mov dword [esp + 0x28], 0
mov dword [ebx + 0x5460], edx
cmp dword [ebx + 0x5460], 0
je 0x4e797a
mov eax, dword [ebx + 0x10]
push ebx
push 8
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4e797a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x4e74aa
call esi
cmp dword [ebx + 0x5460], 0
jne case.0x4e7287.8
jmp 0x4e786e
mov ecx, dword [ebx + 0x5470]
mov edx, dword [ebx + 0x5460]
mov dword [ebx + 4], 7
mov byte [ecx + edx], 0
mov eax, dword [ebx + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x5460]
test eax, eax
jbe 0x4e79c6
mov ecx, dword [ebx + 0x5470]
mov dword [ebx + 0x54d8], eax
mov dl, byte [ecx]
mov byte [ebx + 0x54dc], dl
mov eax, 2
jmp 0x4e74c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x5498]
mov edx, dword [ebx + 0x549c]
cmp ecx, dword [ebx + 0x5490]
jne 0x4e79ec
cmp edx, dword [ebx + 0x5494]
je 0x4e7825
mov eax, dword [ebx + 0x5438]
mov ebx, dword [ebx + 0x543c]
cmp eax, ecx
jne 0x4e7a04
cmp ebx, edx
je 0x4e7825
or eax, ebx
jne case.0x4e7287.8
or ecx, edx
jne 0x4e7825
jmp case.0x4e7287.8
mov eax, dword [ebx + 0x5460]
xor ecx, ecx
add dword [ebx + 0x54b0], eax
adc dword [ebx + 0x54b4], ecx
add dword [ebx + 0x5498], eax
adc dword [ebx + 0x549c], ecx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 9
mov dword [ebx + 4], eax
xor eax, eax
jmp 0x4e74c9
mov eax, dword [ebx]
mov edx, dword [eax + 8]
call edx
xor eax, eax
jmp 0x4e74c9