Function at 0x4569d8
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 0x456be9
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x456be9
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp + 8], eax
push 0x5d41f8
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456be9
push 0x5d4205
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x456be9
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call eax
test eax, eax
je 0x456be9
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x456a61
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 0x456be9
test esi, esi
je 0x456aa4
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 0x5d421b
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456be9
push 0x5d4228
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x456aee
push 0x5d4240
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456be9
push 0x5d424a
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x456be9
push 0x28
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 4]
push ecx
call eax
test eax, eax
je 0x456be9
test edi, edi
je 0x456b0e
mov eax, dword [ebp - 0x4c]
shr eax, 0xa
mov dword [edi], eax
push 0x5d425f
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x456be9
push 0x5d426c
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov esi, eax
test esi, esi
je 0x456be9
push 0x5d4285
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x456be9
push 0x5d4294
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
test edi, edi
je 0x456be9
push 0
push 0xf
call esi
mov esi, eax
mov ecx, 0x4a
push esi
push edi
lea edi, [ebp - 0x180]
mov esi, 0x51be92
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 0x456ba8
lea eax, [ebp - 0x180]
push eax
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x456bb9
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x456b9c
push esi
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x456bde
test ebx, ebx
je 0x456bd7
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x16c]
mov dword [eax], edx
jmp 0x456bde
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov byte [ebp - 9], 1
jmp 0x456be9
mov edx, dword [ebp - 4]
test edx, edx
je 0x456bf9
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