Function at 0x40e440
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441439
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x40e4a0
cmp dword [esi + 0x10], 0
je 0x40e4a0
cmp dword [esi + 4], 0
je 0x40e4a0
cmp dword [esi + 8], 0
je 0x40e4a0
cmp dword [esi + 0xc], 0
je 0x40e4a0
cmp dword [esi + 0x14], 0
je 0x40e4a0
cmp dword [esi + 0x18], 0
je 0x40e4a0
mov al, 1
jmp 0x40e5d8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x890]
push eax
call fcn.0040e880
mov edi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x40e510
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x40e4f3
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00409ea0
xor eax, eax
mov dword [ebp - 0x1c], 7
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.0040e270
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x87c]
cmp eax, 8
jb 0x40e532
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.00409ea0
xor eax, eax
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], 0
mov word [ebp - reloc.advapi32.dll_SetKernelObjectSecurity], ax
cmp dword [ebp - 0x20], eax
je 0x40e5a4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x40e5f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x46aa50]
test ecx, ecx
je 0x40e5a4
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x40e5a4
push reloc.advapi32.dll_RegDeleteKeyA
push str.CVodNetDllLoadHelper::LoadDll
push str._s__d_Load_HCDNClientNet.dll_Failed__n
push str.ppskernel
call fcn.00410370
add esp, 0x10
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x40e5c2
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00409ea0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov al, bl
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret 4
push 0x848
lea eax, [ebp - 0x878]
push 0
push eax
call fcn.00426340
add esp, 0xc
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x890]
call fcn.0040fb80
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x40e626
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x878]
call fcn.0040f760
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x890]
call fcn.004024e0
movq xmm0, qword [ebp - 0x870]
movq qword [ebp - 0x18], xmm0
cmp word [ebp - 0x18], 0xa
jne 0x40e6ef
cmp word [ebp - 0x16], 0
jne 0x40e6ef
cmp word [ebp - 0x14], 0
jne 0x40e6ef
cmp word [ebp - 0x12], 0xe
jae 0x40e6ef
cmp dword [esi + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x40e68e
push str._GetInterfaceVersion
push dword [esi]
call edi
mov dword [esi + 0x10], eax
cmp dword [esi + 4], 0
jne 0x40e6a0
push str.StartModule
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x40e6b2
push str.StopModule
push dword [esi]
call edi
mov dword [esi + 8], eax
cmp dword [esi + 0xc], 0
jne 0x40e6c4
push str.RegModule
push dword [esi]
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 0x14], 0
jne 0x40e6d6
push str.CreateP2PFile
push dword [esi]
call edi
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0
jne 0x40e6e8
push str.DeleteP2PFile
push dword [esi]
call edi
mov dword [esi + 0x18], eax
push str.SetPPSHWnd
jmp 0x40e766
cmp dword [esi + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x40e707
push str.HCDN_GetInterfaceVersion
push dword [esi]
call edi
mov dword [esi + 0x10], eax
cmp dword [esi + 4], 0
jne 0x40e719
push str.HCDN_StartModule
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 8], 0
jne 0x40e72b
push str.HCDN_StopModule
push dword [esi]
call edi
mov dword [esi + 8], eax
cmp dword [esi + 0xc], 0
jne 0x40e73d
push str.HCDN_RegModule
push dword [esi]
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 0x14], 0
jne 0x40e74f
push str.HCDN_CreateP2PFile
push dword [esi]
call edi
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0
jne 0x40e761
push str.HCDN_DeleteP2PFile
push dword [esi]
call edi
mov dword [esi + 0x18], eax
push str.HCDN_SetPPSHWnd
push dword [esi]
call edi
test eax, eax
je 0x40e779
push dword [0x46a570]
call eax
add esp, 4
mov ecx, dword [0x46aa50]
test ecx, ecx
je 0x40e7aa
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x40e7aa
push 0x81
push str.CVodNetDllLoadHelper::LoadDll
push str._s__d:_Load_HCDNClientNet.dll_success__n
push str.ppskernel
call fcn.00410370
add esp, 0x10
cmp dword [esi], 0
je 0x40e7e9
cmp dword [esi + 0x10], 0
je 0x40e7e9
cmp dword [esi + 4], 0
je 0x40e7e9
cmp dword [esi + 8], 0
je 0x40e7e9
cmp dword [esi + 0xc], 0
je 0x40e7e9
cmp dword [esi + 0x14], 0
je 0x40e7e9
cmp dword [esi + 0x18], 0
je 0x40e7e9
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x878]
call fcn.0040f800
jmp 0x40e5a6
xor bl, bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x878]
call fcn.0040f800
jmp 0x40e5a6