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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d9db
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x74fc
call fcn.004921d0
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x74f8], eax
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
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.0x47ab57.8
jmp dword [eax*4 + 0x47b32c]
mov esi, ebx
mov dword [ebx + 4], 2
call fcn.0047b490
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x47ad99
mov eax, dword [ebx + 0x5478]
test eax, eax
je 0x47ab96
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 0x47abbd
mov esi, 0x8428c300
cmp dword [ebx + 0x2018], 4
jne 0x47abcc
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.00406d60
lea edx, [ebx + 0x342c]
lea edi, [esp + 0x14]
mov dword [esp + 0x7518], 0
call fcn.004120c0
cmp byte [ebx + 0x5518], 0
mov eax, str.POST
jne 0x47ac16
mov eax, 0x4ac4f0
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 0x47ad8b
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.004820f0
add esp, 0xc
lea edx, [esp + 0x5474]
push edx
mov ecx, ebx
call fcn.0047b600
lea eax, [esp + 0x5474]
mov dword [esp + 0x3c], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47aca5
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 0x47acf5
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 0x47ad39
cmp dword [ebx + 0x54ec], 0
je 0x47ad39
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 0x47ad39
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 0x47ad4c
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 0x47ad7e
mov ecx, dword [ebx + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x14]
call fcn.00406e10
xor eax, eax
jmp 0x47ad99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x47ad71
lea ecx, [esp + 0x14]
call fcn.00406e10
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.0047cee5
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x5514], 0x10
jb 0x47adce
mov esi, dword [ebx + 0x5500]
jmp 0x47add4
lea esi, [ebx + 0x5500]
mov edx, dword [ebx + 0x551c]
cmp edx, dword [ebx + 0x5510]
jb 0x47aded
mov dword [ebx + 4], 3
xor eax, eax
jmp 0x47ad99
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 0x47ae45
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 0x47ad99
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 0x47ad99
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 0x47aea2
mov eax, dword [ebx + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x47ad99
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x47ad7a
call esi
jmp case.0x47ab57.8
mov dword [ebx + 0x54d8], 0
mov byte [ebx + 0x54dc], 0
call fcn.0047b9a0
mov eax, dword [ebx + 0x54a4]
mov edx, dword [ebx + 0x5430]
mov ecx, dword [ebx + 0x54a0]
mov dword [esp + 0x18], edx
test eax, eax
jl 0x47af8d
jg 0x47aefa
test ecx, ecx
jbe 0x47af8d
xor esi, esi
cmp dword [ebx + 0x549c], esi
jl 0x47afe4
jg 0x47af16
cmp dword [ebx + 0x5498], esi
jbe 0x47afe4
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.0047bc90
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 0x5498]
jne case.0x47ab57.8
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x549c]
jne case.0x47ab57.8
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x54a0]
jne case.0x47ab57.8
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 0x54a4]
jne case.0x47ab57.8
mov edx, dword [esp + 0x18]
mov ebx, esi
cmp dword [ebx + 0x547c], 0
jne 0x47affd
cmp edx, 0xce
je 0x47afae
cmp edx, 0xc8
je 0x47afae
cmp edx, 0xc9
jne 0x47affd
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 0x47ad99
cmp ecx, dword [ebx + 0x5438]
jne case.0x47ab57.8
cmp eax, dword [ebx + 0x543c]
je 0x47af8d
jmp case.0x47ab57.8
cmp edx, 0x1f4
je 0x47b138
test edx, edx
je 0x47b138
cmp edx, 0x190
je 0x47b138
cmp edx, 0x12e
je 0x47b039
cmp edx, 0x12f
je 0x47b039
cmp edx, 0x12d
jne case.0x47ab57.8
mov edx, dword [ebx + 0x54a8]
cmp edx, dword [ebx + 0x54ac]
jge case.0x47ab57.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.0x47ab57.8
lea esi, [esp + 0x5c]
lea edi, [esp + 0x5474]
call fcn.0047bfa0
test eax, eax
je case.0x47ab57.8
cmp byte [ebx + 0x553c], 0
je 0x47b0ff
mov esi, dword [ebx + 0x5470]
test esi, esi
je 0x47b0ff
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 0x47b0c0
sub eax, edx
sar eax, 1
add eax, eax
mov dword [ebx + 0x5460], eax
add eax, 2
cmp eax, 0xfff
jb 0x47b0e6
mov eax, 0xfff
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.0047e343
add esp, 0xc
mov eax, 3
jmp 0x47ad99
push 0x5418
lea edx, [esp + 0x60]
push edx
lea eax, [ebx + 0x14]
push eax
call fcn.00483eb0
add esp, 0xc
push 1
mov esi, ebx
call fcn.0047b360
test eax, eax
je 0x47b129
mov dword [ebx + 4], 1
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x47ad99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov esi, ebx
call fcn.0047b360
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x47ad99
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 0x47b208
jg 0x47b1bf
test edx, edx
jbe 0x47b208
mov esi, dword [ebx + 0x549c]
cmp esi, eax
mov edi, dword [ebx + 0x5498]
jl 0x47b1dd
jg 0x47b1d5
cmp edi, edx
jbe 0x47b1dd
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x47b202
sub edx, edi
sbb eax, esi
test eax, eax
jg 0x47b1f5
jl 0x47b1ef
cmp edx, 0x1fff
jae 0x47b1f5
mov dword [esp + 0x28], eax
jmp 0x47b202
mov edx, 0x1fff
mov dword [esp + 0x28], 0
mov dword [ebx + 0x5460], edx
cmp dword [ebx + 0x5460], 0
je 0x47b24a
mov eax, dword [ebx + 0x10]
push ebx
push 8
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x47b24a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x47ad7a
call esi
cmp dword [ebx + 0x5460], 0
jne case.0x47ab57.8
jmp 0x47b13e
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 0x47b296
mov ecx, dword [ebx + 0x5470]
mov dword [ebx + 0x54d8], eax
mov dl, byte [ecx]
mov byte [ebx + 0x54dc], dl
mov eax, 2
jmp 0x47ad99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x5498]
mov edx, dword [ebx + 0x549c]
cmp ecx, dword [ebx + 0x5490]
jne 0x47b2bc
cmp edx, dword [ebx + 0x5494]
je 0x47b0f5
mov eax, dword [ebx + 0x5438]
mov ebx, dword [ebx + 0x543c]
cmp eax, ecx
jne 0x47b2d4
cmp ebx, edx
je 0x47b0f5
or eax, ebx
jne case.0x47ab57.8
or ecx, edx
jne 0x47b0f5
jmp case.0x47ab57.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 0x47ad99
mov eax, dword [ebx]
mov edx, dword [eax + 8]
call edx
xor eax, eax
jmp 0x47ad99