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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c623b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x74f4
call fcn.0046f7e0
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x74f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x7508]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xc
ja case.0x427253.8
jmp dword [eax*4 + 0x427a00]
mov edi, esi
mov dword [esi + 4], 2
call fcn.00427b80
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4274b2
mov eax, dword [esi + 0x5478]
xor ebx, ebx
cmp eax, ebx
je 0x427290
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x5478], ebx
movzx eax, byte [esi + 0x5518]
neg eax
sbb eax, eax
and eax, 9
add eax, 3
mov dword [esi + 4], eax
mov edi, 0x8408c300
cmp byte [esi + 0x553c], bl
je 0x4272b6
mov edi, 0x8428c300
cmp dword [esi + 0x2018], 4
jne 0x4272c5
or edi, 0x803180
mov ecx, dword [esi + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esi + 0x281c]
push edx
lea ecx, [esp + 0x18]
call fcn.00409e10
lea eax, [esi + 0x342c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x7514], ebx
call fcn.00409f90
cmp byte [esi + 0x5518], 0
mov ebx, 0x4d9ce8
jne 0x42730c
mov ebx, 0x4d9cf4
push esi
push edi
push 0
push 0
push str.HTTP_1.0
lea ecx, [esp + 0x28]
call fcn.0040e660
mov ecx, dword [esi + 0xc]
push eax
push ebx
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4274a4
xor eax, eax
xor edx, edx
push 0x208e
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
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
push edx
lea eax, [esp + 0x5476]
push eax
mov dword [esp + 0x38], 0x28
mov word [esp + 0x5478], dx
call fcn.0046dea0
add esp, 0xc
lea edx, [esp + 0x546c]
mov ecx, esi
call fcn.00427cc0
lea ecx, [esp + 0x546c]
mov eax, ecx
mov dword [esp + 0x34], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4273a3
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
sub eax, edx
push 4
sar eax, 1
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x10]
push 5
push eax
mov dword [esp + 0x2c], 0x7530
call edi
cmp dword [esi + 0x2018], 4
jne 0x4273f3
mov edx, dword [esi + 0x10]
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1f
push edx
mov dword [esp + 0x20], 0x803180
call edi
cmp dword [esi + 0x54e0], 0
je 0x42744d
cmp dword [esi + 0x54ec], 0
je 0x42744d
lea ebx, [esi + 0x54f0]
mov ecx, ebx
call fcn.00409d60
lea eax, [eax + eax + 2]
push eax
mov ecx, ebx
call fcn.0040e660
mov ecx, dword [esi + 0x10]
push eax
push 0x2b
push ecx
call edi
test eax, eax
je 0x42744d
lea ebx, [esi + 0x54f4]
mov ecx, ebx
call fcn.00409d60
lea edx, [eax + eax + 2]
push edx
mov ecx, ebx
call fcn.0040e660
push eax
mov eax, dword [esi + 0x10]
push 0x2c
push eax
call edi
cmp byte [esi + 0x5518], 0
je 0x427465
lea ecx, [esi + 0x54fc]
call fcn.0040a850
mov dword [esp + 0x48], eax
mov edx, dword [esi + 0x10]
push esi
push 1
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x427497
mov eax, dword [esi + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x14]
call fcn.00409f10
xor eax, eax
jmp 0x4274b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42748a
lea ecx, [esp + 0x14]
call fcn.00409f10
mov eax, 4
mov ecx, dword [esp + 0x7508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x74f0]
xor ecx, esp
call fcn.0046da8a
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x54fc]
mov ecx, edi
mov dword [esi + 4], 3
call fcn.0040a850
test eax, eax
jbe 0x427493
mov ecx, dword [esi + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.0040a850
push eax
mov ecx, edi
call fcn.00402e30
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x42753a
mov ecx, dword [esi + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x4274b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
and eax, 4
jmp 0x4274b2
mov edx, dword [esi + 0x5474]
push edx
mov dword [esi + 4], 4
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x10]
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x42758d
mov ecx, dword [esi + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x4274b2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x427493
call esi
jmp case.0x427253.8
xor eax, eax
mov ebx, esi
mov dword [esi + 0x54d8], eax
mov byte [esi + 0x54dc], al
call fcn.00428300
mov ecx, dword [esi + 0x54a4]
mov eax, dword [esi + 0x5430]
mov edx, dword [esi + 0x54a0]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x10], eax
jl 0x427673
jg 0x4275e6
cmp edx, ebx
jbe 0x427673
cmp dword [esi + 0x549c], ebx
jl 0x4276c6
jg 0x427600
cmp dword [esi + 0x5498], ebx
jbe 0x4276c6
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push edx
lea ebx, [esp + 0x28]
lea edi, [esp + 0x20]
call fcn.004285d0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x5498]
jne case.0x427253.8
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 0x549c]
jne case.0x427253.8
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x54a0]
jne case.0x427253.8
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x54a4]
jne case.0x427253.8
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp dword [esi + 0x547c], ebx
jne 0x4276df
cmp eax, 0xce
je 0x427690
cmp eax, 0xc8
je 0x427690
cmp eax, 0xc9
jne 0x4276df
mov edx, dword [esi + 0x10]
push 4
lea ecx, [esp + 0x14]
push ecx
push 6
push edx
mov dword [esi + 4], 5
mov dword [esp + 0x20], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, byte [esi + 0x553c]
neg eax
sbb eax, eax
and eax, 3
inc eax
jmp 0x4274b2
cmp edx, dword [esi + 0x5438]
jne case.0x427253.8
cmp ecx, dword [esi + 0x543c]
je 0x427673
jmp case.0x427253.8
cmp eax, 0x1f4
je 0x42780c
cmp eax, ebx
je 0x42780c
cmp eax, 0x190
je 0x42780c
cmp eax, 0x12e
je 0x427716
cmp eax, 0x12f
je 0x427716
cmp eax, 0x12d
jne case.0x427253.8
mov eax, dword [esi + 0x54a8]
cmp eax, dword [esi + 0x54ac]
jge case.0x427253.8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x5474]
push eax
push 0x21
push ecx
mov dword [esp + 0x30], 0x2000
mov dword [esp + 0x24], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je case.0x427253.8
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x5470]
push eax
call fcn.004288d0
add esp, 8
test eax, eax
je case.0x427253.8
cmp byte [esi + 0x553c], bl
je 0x4277d5
mov edi, dword [esi + 0x5470]
cmp edi, ebx
je 0x4277d5
lea eax, [esp + 0x54]
mov dword [esi + 0x545c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x427796
sub eax, edx
sar eax, 1
add eax, eax
mov dword [esi + 0x5460], eax
add eax, 2
cmp eax, 0xfff
jb 0x4277bc
mov eax, 0xfff
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
call fcn.004875fc
add esp, 0xc
mov eax, 3
jmp 0x4274b2
push 0x5418
lea edx, [esp + 0x58]
push edx
lea eax, [esi + 0x14]
push eax
call fcn.0046e9c0
add esp, 0xc
push 1
call fcn.00427a40
cmp eax, ebx
je 0x4277fd
mov dword [esi + 4], 1
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4274b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
call fcn.00427a40
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x4274b2
mov ecx, dword [esi + 0x5474]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea ecx, [esi + 0x5448]
mov dword [esi + 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 [esi + 0x5470]
mov eax, dword [esi + 0x5494]
mov dword [esi + 0x545c], edx
mov edx, dword [esi + 0x5490]
mov dword [ecx], 0x28
mov dword [esi + 0x5460], 0x1fff
test eax, eax
jl 0x4278da
jg 0x427891
test edx, edx
jbe 0x4278da
mov edi, dword [esi + 0x549c]
cmp edi, eax
mov ebx, dword [esi + 0x5498]
jl 0x4278af
jg 0x4278a7
cmp ebx, edx
jbe 0x4278af
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x4278d4
sub edx, ebx
sbb eax, edi
test eax, eax
jg 0x4278c7
jl 0x4278c1
cmp edx, 0x1fff
jae 0x4278c7
mov dword [esp + 0x28], eax
jmp 0x4278d4
mov edx, 0x1fff
mov dword [esp + 0x28], 0
mov dword [esi + 0x5460], edx
cmp dword [esi + 0x5460], 0
je 0x42791c
mov eax, dword [esi + 0x10]
push esi
push 8
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x42791c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x427493
call edi
cmp dword [esi + 0x5460], 0
jne case.0x427253.8
jmp 0x427812
mov ecx, dword [esi + 0x5470]
mov edx, dword [esi + 0x5460]
mov dword [esi + 4], 7
mov byte [ecx + edx], 0
mov eax, dword [esi + 0x5474]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x5460]
test eax, eax
jbe 0x427968
mov ecx, dword [esi + 0x5470]
mov dword [esi + 0x54d8], eax
mov dl, byte [ecx]
mov byte [esi + 0x54dc], dl
mov eax, 2
jmp 0x4274b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x5498]
mov edx, dword [esi + 0x549c]
cmp ecx, dword [esi + 0x5490]
jne 0x42798e
cmp edx, dword [esi + 0x5494]
je 0x4277cb
mov eax, dword [esi + 0x5438]
mov esi, dword [esi + 0x543c]
cmp eax, ecx
jne 0x4279a6
cmp esi, edx
je 0x4277cb
or eax, esi
jne case.0x427253.8
or ecx, edx
jne 0x4277cb
jmp case.0x427253.8
mov eax, dword [esi + 0x5460]
xor ecx, ecx
add dword [esi + 0x54b0], eax
adc dword [esi + 0x54b4], ecx
add dword [esi + 0x5498], eax
adc dword [esi + 0x549c], ecx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 9
mov dword [esi + 4], eax
xor eax, eax
jmp 0x4274b2
mov eax, dword [esi]
mov edx, dword [eax + 8]
call edx
xor eax, eax
jmp 0x4274b2