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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50e76b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x74fc
call fcn.00502c00
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x74f8], eax
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
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.0x4e79b7.8
jmp dword [eax*4 + 0x4e818c]
mov esi, ebx
mov dword [ebx + 4], 2
call fcn.004e82f0
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4e7bf9
mov eax, dword [ebx + 0x5478]
test eax, eax
je 0x4e79f6
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 0x4e7a1d
mov esi, 0x8428c300
cmp dword [ebx + 0x2018], 4
jne 0x4e7a2c
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.00406d70
lea edx, [ebx + 0x342c]
lea edi, [esp + 0x14]
mov dword [esp + 0x7518], 0
call fcn.00417f00
cmp byte [ebx + 0x5518], 0
mov eax, str.POST
jne 0x4e7a76
mov eax, 0x523640
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 0x4e7beb
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.004f08c0
add esp, 0xc
lea edx, [esp + 0x5474]
push edx
mov ecx, ebx
call fcn.004e8460
lea eax, [esp + 0x5474]
mov dword [esp + 0x3c], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e7b05
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 0x4e7b55
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 0x4e7b99
cmp dword [ebx + 0x54ec], 0
je 0x4e7b99
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 0x4e7b99
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 0x4e7bac
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 0x4e7bde
mov ecx, dword [ebx + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x14]
call fcn.00406e40
xor eax, eax
jmp 0x4e7bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4e7bd1
lea ecx, [esp + 0x14]
call fcn.00406e40
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.004ea83a
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x5514], 0x10
jb 0x4e7c2e
mov esi, dword [ebx + 0x5500]
jmp 0x4e7c34
lea esi, [ebx + 0x5500]
mov edx, dword [ebx + 0x551c]
cmp edx, dword [ebx + 0x5510]
jb 0x4e7c4d
mov dword [ebx + 4], 3
xor eax, eax
jmp 0x4e7bf9
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 0x4e7ca5
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 0x4e7bf9
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 0x4e7bf9
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 0x4e7d02
mov eax, dword [ebx + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x4e7bf9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x4e7bda
call esi
jmp case.0x4e79b7.8
mov dword [ebx + 0x54d8], 0
mov byte [ebx + 0x54dc], 0
call fcn.004e8800
mov eax, dword [ebx + 0x54a4]
mov edx, dword [ebx + 0x5430]
mov ecx, dword [ebx + 0x54a0]
mov dword [esp + 0x18], edx
test eax, eax
jl 0x4e7ded
jg 0x4e7d5a
test ecx, ecx
jbe 0x4e7ded
xor esi, esi
cmp dword [ebx + 0x549c], esi
jl 0x4e7e44
jg 0x4e7d76
cmp dword [ebx + 0x5498], esi
jbe 0x4e7e44
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.004e8af0
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 0x5498]
jne case.0x4e79b7.8
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x549c]
jne case.0x4e79b7.8
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x54a0]
jne case.0x4e79b7.8
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 0x54a4]
jne case.0x4e79b7.8
mov edx, dword [esp + 0x18]
mov ebx, esi
cmp dword [ebx + 0x547c], 0
jne 0x4e7e5d
cmp edx, 0xce
je 0x4e7e0e
cmp edx, 0xc8
je 0x4e7e0e
cmp edx, 0xc9
jne 0x4e7e5d
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 0x4e7bf9
cmp ecx, dword [ebx + 0x5438]
jne case.0x4e79b7.8
cmp eax, dword [ebx + 0x543c]
je 0x4e7ded
jmp case.0x4e79b7.8
cmp edx, 0x1f4
je 0x4e7f98
test edx, edx
je 0x4e7f98
cmp edx, 0x190
je 0x4e7f98
cmp edx, 0x12e
je 0x4e7e99
cmp edx, 0x12f
je 0x4e7e99
cmp edx, 0x12d
jne case.0x4e79b7.8
mov edx, dword [ebx + 0x54a8]
cmp edx, dword [ebx + 0x54ac]
jge case.0x4e79b7.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.0x4e79b7.8
lea esi, [esp + 0x5c]
lea edi, [esp + 0x5474]
call fcn.004e8d10
test eax, eax
je case.0x4e79b7.8
cmp byte [ebx + 0x553c], 0
je 0x4e7f5f
mov esi, dword [ebx + 0x5470]
test esi, esi
je 0x4e7f5f
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 0x4e7f20
sub eax, edx
sar eax, 1
add eax, eax
mov dword [ebx + 0x5460], eax
add eax, 2
cmp eax, 0xfff
jb 0x4e7f46
mov eax, 0xfff
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.004ec863
add esp, 0xc
mov eax, 3
jmp 0x4e7bf9
push 0x5418
lea edx, [esp + 0x60]
push edx
lea eax, [ebx + 0x14]
push eax
call fcn.004f26c0
add esp, 0xc
push 1
mov esi, ebx
call fcn.004e81c0
test eax, eax
je 0x4e7f89
mov dword [ebx + 4], 1
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4e7bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov esi, ebx
call fcn.004e81c0
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4e7bf9
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 0x4e8068
jg 0x4e801f
test edx, edx
jbe 0x4e8068
mov esi, dword [ebx + 0x549c]
cmp esi, eax
mov edi, dword [ebx + 0x5498]
jl 0x4e803d
jg 0x4e8035
cmp edi, edx
jbe 0x4e803d
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x4e8062
sub edx, edi
sbb eax, esi
test eax, eax
jg 0x4e8055
jl 0x4e804f
cmp edx, 0x1fff
jae 0x4e8055
mov dword [esp + 0x28], eax
jmp 0x4e8062
mov edx, 0x1fff
mov dword [esp + 0x28], 0
mov dword [ebx + 0x5460], edx
cmp dword [ebx + 0x5460], 0
je 0x4e80aa
mov eax, dword [ebx + 0x10]
push ebx
push 8
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4e80aa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x4e7bda
call esi
cmp dword [ebx + 0x5460], 0
jne case.0x4e79b7.8
jmp 0x4e7f9e
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 0x4e80f6
mov ecx, dword [ebx + 0x5470]
mov dword [ebx + 0x54d8], eax
mov dl, byte [ecx]
mov byte [ebx + 0x54dc], dl
mov eax, 2
jmp 0x4e7bf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x5498]
mov edx, dword [ebx + 0x549c]
cmp ecx, dword [ebx + 0x5490]
jne 0x4e811c
cmp edx, dword [ebx + 0x5494]
je 0x4e7f55
mov eax, dword [ebx + 0x5438]
mov ebx, dword [ebx + 0x543c]
cmp eax, ecx
jne 0x4e8134
cmp ebx, edx
je 0x4e7f55
or eax, ebx
jne case.0x4e79b7.8
or ecx, edx
jne 0x4e7f55
jmp case.0x4e79b7.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 0x4e7bf9
mov eax, dword [ebx]
mov edx, dword [eax + 8]
call edx
xor eax, eax
jmp 0x4e7bf9