Function at 0x499442
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov esi, ecx
test dl, dl
je 0x499725
mov eax, dword [esi + 0xd4]
and dword [esp + 0x68], 0
and dword [esp + 0x30], 0
and dword [esp + 0x38], 0
and dword [esp + 0x70], 0
and dword [esp + 0x78], 0
and dword [esp + 0x98], 0
and dword [esp + 0x6c], 0
and dword [esp + 0x34], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x74], 0
and dword [esp + 0x7c], 0
and dword [esp + 0x9c], 0
mov dword [esp + 0x20], edx
test eax, eax
je 0x4994c3
lea ecx, [esp + 0x38]
lea edx, [esp + 0x30]
lea edi, [esp + 0x68]
push ecx
push edx
push edi
push edi
push dword [eax + 8]
call sub.KERNEL32.dll_GetProcessTimes
lea ecx, [esp + 0x98]
lea edi, [esp + 0x78]
lea eax, [esp + 0x70]
push ecx
push edi
push eax
call sub.KERNEL32.dll_GetSystemTimes
mov ebx, dword [edi]
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
cmp ebx, eax
mov edx, edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
sbb edx, ecx
mov edx, 0
cmovb eax, edx
cmovb ecx, edx
sub ebx, eax
lea eax, [esp + 0x98]
sbb edi, ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x24], ebx
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
cmp ecx, eax
mov ecx, edx
sbb ecx, ebx
mov ecx, 0
mov edi, dword [esp + 0x2c]
cmovb ebx, ecx
cmovb eax, ecx
mov ecx, dword [esi + 0x58]
sub edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x5c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x6c], edx
sbb edx, ebx
mov dword [esp + 0x10], ecx
mov ecx, edi
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x54]
mov ebx, edx
or ecx, dword [esp + 0x24]
or ebx, dword [esp + 0x28]
mov dword [esi + 0x64], eax
or ecx, ebx
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x60], ecx
je 0x499716
xor ecx, ecx
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
dec ecx
add edi, dword [esp + 0x24]
adc edx, dword [esp + 0x28]
cmovb edi, ecx
cmovb edx, ecx
cmp dword [esp + 0xc], ebx
mov ecx, eax
movd xmm0, edi
mov edi, dword [esp + 0x48]
movd xmm1, edx
punpckldq xmm0, xmm1
sbb ecx, edi
mov ecx, 0
cmovb ebx, ecx
cmovb edi, ecx
sub dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x4c]
sbb eax, edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x14], edi
mov ecx, eax
sbb ecx, ebx
mov ecx, 0
cmovb edi, ecx
cmovb ebx, ecx
sub dword [esp + 0x14], edi
movq qword [esp + 0x90], xmm0
fild qword [esp + 0x90]
fnstcw word [esp + 0xa]
movzx ecx, word [esp + 0xa]
sbb eax, ebx
shr edx, 0x1f
or ecx, 0x300
mov word [esp + 0x1e], cx
mov ecx, 0xffffffff
fldcw word [esp + 0x1e]
fadd dword [edx*4 + 0x4ce3b0]
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0xc]
adc eax, dword [esp + 0x10]
fldcw word [esp + 0xa]
cmovb eax, ecx
cmovb edx, ecx
fstp dword [esp + 0x60]
movd xmm0, eax
movd xmm1, edx
shr eax, 0x1f
punpckldq xmm1, xmm0
movq qword [esp + 0x88], xmm1
fild qword [esp + 0x88]
fnstcw word [esp + 8]
movzx ecx, word [esp + 8]
or ecx, 0x300
mov word [esp + 0x1c], cx
mov ecx, dword [ebp + 0xc]
fldcw word [esp + 0x1c]
movd xmm2, ecx
shr ecx, 0x1f
fadd dword [eax*4 + 0x4ce3b0]
fldcw word [esp + 8]
mov eax, dword [ebp + 8]
fstp dword [esp + 0x5c]
movd xmm1, eax
movss xmm0, dword [esp + 0x5c]
punpckldq xmm1, xmm2
divss xmm0, dword [esp + 0x60]
movq qword [esp + 0x80], xmm1
fild qword [esp + 0x80]
fnstcw word [esp + 6]
movzx eax, word [esp + 6]
mulss xmm0, dword [0x4ce3b8]
or eax, 0x300
mov word [esp + 0x1a], ax
fldcw word [esp + 0x1a]
fadd dword [ecx*4 + 0x4ce3b0]
fldcw word [esp + 6]
fstp dword [esp + 0x64]
mulss xmm0, dword [esp + 0x64]
jmp 0x499719
xorps xmm0, xmm0
mov edx, dword [esp + 0x20]
movss dword [esi + 0xd8], xmm0
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test dx, 0xff00
je 0x49979a
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x49979a
lea ecx, [esp + 0x98]
push ecx
push dword [eax + 8]
call sub.KERNEL32.dll_GetProcessIoCounters
test eax, eax
je 0x49979a
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x94]
movsd xmm0, qword [esp + 0xb0]
movq xmm1, qword [esp + 0xb8]
mov dword [esi + 0x84], ecx
mov dword [esi + 0x80], eax
movq xmm2, qword [esi + 0x98]
movq qword [esi + 0x88], xmm2
movsd qword [esi + 0x90], xmm0
movq qword [esi + 0x98], xmm1
xor eax, eax
sub edi, dword [esi + 0x70]
sbb ebx, dword [esi + 0x74]
cmovb edi, eax
cmovb ebx, eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], edi
mov byte [esi + 0xdc], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret