Function at 0x402cf0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x416daf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [esp + 7]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x14], esi
mov byte [esi + 4], al
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x124], ebx
call fcn.00415e00
lea ecx, [esi + 0x1c]
mov byte [esp + 0x124], 1
call fcn.00415e00
lea ecx, [esi + 0x20]
mov byte [esp + 0x124], 2
call fcn.00415e00
lea ecx, [esi + 0x24]
mov byte [esp + 0x124], 3
call fcn.00415e00
lea ecx, [esi + 0x28]
mov byte [esp + 0x124], 4
call fcn.00415e00
lea ecx, [esi + 0x7c]
mov byte [esp + 0x124], 5
call fcn.00415e00
lea ecx, [esi + 0x80]
mov byte [esp + 0x124], 6
call fcn.00415e00
lea ecx, [esi + 0x84]
mov byte [esp + 0x124], 7
call fcn.00415e00
lea ecx, [esi + 0x88]
mov byte [esp + 0x124], 8
call fcn.00415e00
lea ecx, [esi + 0x8c]
mov byte [esp + 0x124], 9
call fcn.00415e00
lea ecx, [esi + 0x90]
mov byte [esp + 0x124], 0xa
call fcn.00415e00
lea ecx, [esi + 0xa0]
mov byte [esp + 0x124], 0xb
call fcn.00415e00
lea ecx, [esi + 0xa4]
mov byte [esp + 0x124], 0xc
call fcn.00415e00
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.VdDiagCheckUpdateEvent
push 1
push 1
push ebx
mov byte [esp + 0x134], 0xd
mov dword [esi], 0x419650
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call edi
push str.VdDiagGetPlaylistEvent
push 1
push 1
push ebx
mov dword [esi + 0x4c], eax
call edi
push str.VdDiagAnalyzeVideoEvent
push 1
push 1
push ebx
mov dword [esi + 0x50], eax
call edi
push str.VdDiagDownloadVideoEvent
push 1
push 1
push ebx
mov dword [esi + 0x54], eax
call edi
push str.VdDiagTestNetworkEvent
push 1
push 1
push ebx
mov dword [esi + 0x60], eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x402f65
mov byte [eax + 1], bl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00415e3c
push eax
mov ecx, 0x420c3c
mov byte [esp + 0x128], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x420c3c]
push ecx
push str._sconfig.ini
push 0x420c38
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0xc]
push 0x420b90
push 0x420c3c
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, 0x420d28
push eax
mov byte [esp + 0x128], 0xf
call fcn.00407fe0
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x420c38]
mov dword [0x420d40], 1
push eax
push ebx
push str.diaglevel
push str.VdDiag
mov dword [0x420d3c], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x420d2c], eax
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret