Function at 0x401020
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4522ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x8b8
call fcn.004372a1
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x40108f
mov eax, dword [esi + 0x64]
push eax
push edi
mov eax, esi
call fcn.0040e550
mov dword [edi], vtable.WebMainPage.0
mov dword [edi + 0x888], 0x45854c
mov dword [edi + 0x88c], 0x45855c
jmp 0x401091
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 8]
mov dword [esi + 0x54], edi
mov eax, dword [eax + 0x20]
add eax, 0x264
push 0x200
mov dword [ebp - 0x10], eax
call fcn.0043723a
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x34]
add esp, 4
mov ecx, esi
call eax
mov ebx, eax
xor eax, eax
mov ecx, str.DOWNLOADING
lea ebx, [ebx]
mov edx, eax
shl edx, 5
sub edx, eax
movzx eax, word [ecx]
add ecx, 2
add eax, edx
cmp ecx, 0x4584ae
jl 0x4010d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
call fcn.0040d2b0
mov eax, dword [eax]
test eax, eax
jne 0x401100
mov eax, str.DOWNLOADING
add ebx, 0x17f8
push ebx
push eax
push 0x100
push 0x100
push edi
call fcn.00437a91
mov ebx, dword [ebp - 0x10]
add esp, 0x14
lea edx, [ebp - 0x14]
mov eax, ebx
mov dword [ebp - 0x14], 0xffc33f19
call fcn.0040d2b0
mov eax, dword [eax]
mov dword [ebp - 0x28], str.CHECK_JAVA
test eax, eax
je 0x40113f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
xor ecx, ecx
mov eax, 0x4584ca
lea esp, [esp]
movzx edx, word [eax - 2]
mov edi, ecx
shl edi, 5
sub edi, ecx
add edx, edi
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax + 2]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax + 4]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax + 6]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax + 8]
add eax, 0xc
add ecx, edx
cmp eax, 0x4584e2
jl 0x401150
lea edx, [ebp - 0x14]
mov eax, ebx
mov dword [ebp - 0x14], ecx
call fcn.0040d2b0
mov eax, dword [eax]
mov dword [ebp - 0x20], str.INSTALLATION
test eax, eax
je 0x4011c4
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
cmp word [eax + 0x9fc4], 0x33
jne 0x401213
xor eax, eax
mov ecx, str.START_DOWNLOADING
mov edi, edi
mov edx, eax
shl edx, 5
sub edx, eax
movzx eax, word [ecx]
add ecx, 2
add eax, edx
cmp ecx, 0x458506
jl 0x4011e0
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0040d2b0
mov eax, dword [eax]
test eax, eax
jne 0x401251
mov dword [ebp - 0x1c], str.START_DOWNLOADING
jmp 0x401254
xor eax, eax
mov ecx, str.STARTING_PLAYBACK
lea ebx, [ebx]
mov edx, eax
shl edx, 5
sub edx, eax
movzx eax, word [ecx]
add ecx, 2
add eax, edx
cmp ecx, 0x45852a
jl 0x401220
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0040d2b0
mov eax, dword [eax]
mov dword [ebp - 0x1c], str.STARTING_PLAYBACK
test eax, eax
je 0x401254
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push 0x82
push 4
lea eax, [ebp - 0x28]
push eax
call edx
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + 0x8b4]
lea eax, [esi + 0x50]
mov dword [ecx + 0x2c], eax
mov edi, dword [esi + 0x18]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x54]
lea ecx, [ebp - 0x14]
push ecx
push edx
push edi
mov dword [ebp - 0x14], eax
call fcn.004031c0
mov ecx, dword [esi + 0x1c]
mov edx, 0x3ffffffe
sub edx, ecx
mov ebx, 1
cmp edx, ebx
jae 0x4012ac
push str.list_T__too_long
call fcn.0044b6d0
inc ecx
mov dword [esi + 0x1c], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
push 0x88c
mov dword [ecx], eax
call fcn.004372a1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4012d8
mov edi, eax
call fcn.004014a0
jmp 0x4012da
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x6c], eax
mov edi, dword [esi + 0x18]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call fcn.004031c0
mov ecx, dword [esi + 0x1c]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, ebx
jae 0x401310
push str.list_T__too_long
call fcn.0044b6d0
inc ecx
mov dword [esi + 0x1c], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov ecx, dword [esi + 0x44]
lea eax, [esi + 0x40]
mov esi, dword [ecx + 0x10]
lea edi, [esi + 0x14]
push edi
mov dword [esi + 0x10], eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x401362
cmp byte [esi + 0x2c], 0
jne 0x401362
mov edx, dword [esi + 4]
sub edx, dword [esi]
sar edx, 2
test edx, edx
je 0x401362
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov byte [esi + 0x2c], bl
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret