Function at 0x456410
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov edx, dword [ebp + 8]
test edx, edx
jne 0x456621
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x456621
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp + 8], eax
push 0x5d2baf
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456621
push 0x5d2bbc
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x456621
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call eax
test eax, eax
je 0x456621
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x456499
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
mov dword [eax], edx
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push ecx
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push edx
push ecx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_GetProcessTimes
test eax, eax
je 0x456621
test esi, esi
je 0x4564dc
mov eax, dword [ebp - 0x24]
mov ecx, 0x989680
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov ebx, 0x989680
xor edx, edx
div ebx
add ecx, eax
mov dword [esi], ecx
push 0x5d2bd2
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456621
push 0x5d2bdf
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x456526
push 0x5d2bf7
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456621
push 0x5d2c01
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x456621
push 0x28
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 4]
push ecx
call eax
test eax, eax
je 0x456621
test edi, edi
je 0x456546
mov eax, dword [ebp - 0x4c]
shr eax, 0xa
mov dword [edi], eax
push 0x5d2c16
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456621
push 0x5d2c23
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov esi, eax
test esi, esi
je 0x456621
push 0x5d2c3c
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x456621
push 0x5d2c4b
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
test edi, edi
je 0x456621
push 0
push 0xf
call esi
mov esi, eax
mov ecx, 0x4a
push esi
push edi
lea edi, [ebp - 0x180]
mov esi, 0x51a93a
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 0x180], 0x128
lea eax, [ebp - 0x180]
push eax
push esi
call dword [ebp - 0x30]
mov ebx, eax
jmp 0x4565e0
lea eax, [ebp - 0x180]
push eax
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x4565f1
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x4565d4
push esi
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x456616
test ebx, ebx
je 0x45660f
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x16c]
mov dword [eax], edx
jmp 0x456616
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov byte [ebp - 9], 1
jmp 0x456621
mov edx, dword [ebp - 4]
test edx, edx
je 0x456631
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret