Function at 0x4162c8
Capabilities:
Parse url
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5e4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
xor esi, esi
push 4
mov dword [esp + 0x24], 1
pop ebx
cmp eax, esi
je 0x4162f8
cmp eax, 0xffffffff
jne 0x416369
mov eax, 0x1000
call fcn.00403db0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], esi
jne 0x416317
xor eax, eax
jmp 0x416a40
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x3c]
push ecx
push 0x2d
mov dword [esp + 0x34], ebx
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov eax, dword [ebp + 8]
push 0x4162a4
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], eax
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0x2d
push dword [eax + 8]
call edi
push 0x28
pop edx
push edx
push esi
lea eax, [esp + 0x60]
push eax
call fcn.00403e7b
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0x40]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 8]
push eax
push 8
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x7c], 0x1000
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x41641d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x44], eax
cmp eax, 0x3e5
jne 0x416470
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x4163de
inc dword [eax]
jmp 0x416310
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [esp + 0x90]
push eax
call ebx
test eax, eax
jne 0x4163d0
mov eax, dword [ebp + 8]
push 0x4bf
push 0xffffffffffffffff
push esi
add eax, 0x34
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x4163de
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x41638c
mov dword [esp + 0x44], esi
cmp dword [esp + 0x70], esi
je 0x416474
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
add eax, dword [esp + 0x70]
push dword [ecx + 0x1c]
call fcn.00403d7c
cmp eax, esi
je 0x416468
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
push dword [esp + 0x70]
mov ecx, dword [eax + 0x20]
push dword [eax + 0x40]
add ecx, dword [eax + 0x1c]
push ecx
call fcn.00403e04
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x70]
add dword [eax + 0x20], ecx
jmp 0x41638c
mov dword [esp + 0x44], 8
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 8]
push 4
lea ecx, [eax + 0x3c]
push ecx
push 0x2d
push dword [eax + 8]
call edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0xffffffff
jne 0x416491
xor ecx, ecx
jmp 0x416494
mov ecx, dword [eax + 0x38]
push ecx
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], esi
je 0x4169b7
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x2c], ecx
jbe 0x4169ba
mov dword [esp + 0x38], ecx
mov esi, dword [eax + 0x28]
add esi, dword [esp + 0x38]
xor edi, edi
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x30], esi
cmp ecx, edi
je 0x41650f
cmp byte [ecx], 0x2a
jne 0x4164ee
cmp byte [ecx + 1], 0
je 0x41650f
push 8
push edi
push edi
push dword [eax + 0x20]
push dword [eax + 0x1c]
call fcn.004044ae
mov edx, eax
call fcn.004136d1
test al, al
mov eax, dword [ebp + 8]
je 0x416901
mov ecx, dword [esi + 4]
mov esi, dword [esi + 8]
add esi, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
cmp ecx, esi
jae 0x416734
jmp 0x416530
mov eax, dword [ebp + 8]
movzx esi, word [ecx]
add esi, ecx
movzx edi, word [esi]
add edi, esi
mov dword [esp + 0x3c], edi
cmp esi, edi
jae 0x416734
cmp edi, dword [esp + 0x28]
jae 0x416734
and dword [esp + 0x18], 0
or edx, 0xffffffff
mov dword [esp + 0x14], edx
cmp word [ecx + 4], 0
je 0x416591
movzx ebx, word [ecx + 4]
push 0xb
push 0
lea edx, [esp + 0x20]
push edx
movzx edx, word [ecx]
push dword [eax + 0x20]
sub edx, ebx
push dword [eax + 0x1c]
add ecx, ebx
call fcn.004136d1
test al, al
je 0x416722
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x14]
cmp word [esi + 4], 0
je 0x4165d0
movzx ecx, word [esi + 4]
push 0xb
lea edx, [esp + 0x18]
push edx
mov edx, dword [eax + 0x20]
sub edx, dword [esp + 0x20]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x20]
push 0
push edx
movzx edx, word [esi]
sub edx, ecx
push eax
add ecx, esi
call fcn.004136d1
test al, al
je 0x416722
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x14]
movzx ecx, word [edi + 4]
test cx, cx
je 0x4165e3
movzx ebx, word [edi]
movzx ecx, cx
sub ebx, ecx
jmp 0x4165e5
xor ebx, ebx
cmp word [esi + 4], 0
jne 0x4165f2
xor edx, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x30]
test byte [ecx], 1
je 0x41669e
test edx, edx
jne 0x41660e
mov edx, dword [eax + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + edx]
lea eax, [eax + ecx + 4]
lea esi, [esp + 0x40]
call fcn.00403d5b
test al, al
je 0x416731
movzx eax, word [edi + 4]
mov esi, dword [esp + 0x40]
test ax, ax
jbe 0x416653
movzx eax, ax
push ebx
add eax, edi
push eax
mov eax, dword [esp + 0x24]
lea ecx, [eax + esi]
push ecx
call fcn.00403e04
add eax, ebx
mov dword [esp + 0x1c], eax
jmp 0x416657
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
push dword [esp + 0x14]
add ecx, dword [esp + 0x1c]
lea edx, [eax + esi]
push ecx
push edx
call fcn.00403e04
mov ecx, dword [esp + 0x30]
test byte [ecx], 4
je 0x41667e
add eax, dword [esp + 0x14]
jmp 0x416690
push dword [esp + 0x14]
push edx
call fcn.0040c39b
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov byte [eax + esi], 0xa
inc eax
mov dword [esp + 0x1c], eax
jmp 0x416722
mov edi, dword [eax + 0x20]
sub edi, edx
add edi, ebx
mov eax, edi
call fcn.00403db0
mov esi, eax
test esi, esi
je 0x41671e
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
push esi
call fcn.00403e04
mov eax, dword [esp + 0x3c]
movzx ecx, word [eax + 4]
add ecx, eax
mov eax, dword [esp + 0x18]
push ebx
push ecx
add eax, esi
push eax
call fcn.00403e04
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
sub ecx, dword [esp + 0x14]
add eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x18]
add eax, dword [esp + 0x18]
push ecx
push eax
lea eax, [esi + ebx]
add eax, dword [esp + 0x20]
push eax
call fcn.00403e04
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call fcn.00403dc8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edi
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x3c]
movzx ecx, word [edi]
add ecx, edi
cmp ecx, dword [esp + 0x28]
jb 0x41652d
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x30]
test byte [edi], 1
je 0x41686d
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x41686d
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0xfff
push dword [eax + 0x40]
push 0x22
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
jne 0x416779
and dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
mov byte [eax + ebx], 0
test byte [edi], 2
je 0x416831
push 0x3c
pop edx
push edx
push 0
lea eax, [esp + 0xb4]
push eax
call fcn.00403e7b
lea eax, [esp + 0xe8]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xac]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [esp + 0x3c]
mov esi, 0x103
mov dword [esp + 0xb8], edx
mov dword [esp + 0xcc], esi
push dword [eax + 0x40]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x50]
sub eax, 0x7d0
push eax
lea eax, [esp + 0xf4]
push eax
push 0x40306c
lea eax, [esp + 0x204]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push dword [esp + 0x1c]
lea eax, [esp + 0x1f4]
push ebx
push eax
push 0
push 3
call fcn.0040ecc8
jmp 0x416864
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
mov eax, dword [esp + 0x38]
call fcn.004044a0
push ebx
mov esi, eax
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
push 0x4030a4
push 0
push esi
push 0xc9
call fcn.0040ee23
add esp, 0x18
push esi
call fcn.00403dc8
push ebx
call fcn.00403dc8
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4168b2
cmp byte [ecx], 0
je 0x4168b2
push dword [0x422764]
call fcn.00403dc8
push dword [0x422768]
call fcn.00403dc8
push dword [edi + 0xc]
or eax, 0xffffffff
call fcn.004040c9
push dword [edi + 0x10]
mov dword [0x422764], eax
or eax, 0xffffffff
call fcn.004040c9
mov dword [0x422768], eax
mov eax, dword [ebp + 8]
test byte [edi], 8
je 0x416901
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x416901
call fcn.004044ae
push eax
push ecx
lea eax, [esp + 0x88]
push eax
call fcn.004050f5
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x84]
push eax
push 0
push 0x10
pop eax
call fcn.0040e178
mov eax, dword [ebp + 8]
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x38], 0x18
cmp ecx, dword [eax + 0x2c]
jb 0x4164cf
cmp byte [esp + 0x13], 0
je 0x4169ba
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1f4]
push ecx
push 0x22
mov dword [esp + 0x34], 0x400
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x4169b7
mov eax, dword [esp + 0x28]
cmp eax, 8
jbe 0x4169b7
lea ecx, [esp + 0x1f0]
push ecx
push 0
call fcn.00403fcb
mov ebx, eax
test ebx, ebx
je 0x4169b7
mov eax, 0x1000
mov dword [esp + 0x24], eax
call fcn.00403db0
mov esi, eax
test esi, esi
je 0x4169b1
lea eax, [esp + 0x24]
push eax
push esi
push ebx
mov dword [esi], 0x50
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
test eax, eax
je 0x4169ab
mov eax, dword [esi + 8]
test eax, eax
je 0x4169ab
cmp word [eax], 0
je 0x4169ab
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1c]
mov edi, dword [ecx + 0x20]
push eax
call fcn.00404d07
push esi
call fcn.00403dc8
push ebx
call fcn.00403dc8
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
call fcn.00403dc8
mov eax, dword [ebp + 8]
or dword [eax + 4], 0x10
mov edi, 0x42276c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 8]
call fcn.004159f7
cmp eax, 0xffffffff
je 0x4169fa
imul eax, eax, 0x30
add eax, dword [0x422760]
push 0x30
add ebx, 4
push ebx
push eax
call fcn.00403e04
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
jbe 0x416a36
cmp ecx, 0xffffffff
je 0x416a36
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x3c]
push 8
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 8]
push 0x64
call fcn.00415e59
mov eax, dword [ebp + 8]
push eax
call fcn.00403dc8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4