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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4cf7b1
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
test eax, eax
je 0x4b4233
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x100], 0
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea esi, [esp + 0x14]
mov eax, ebx
mov byte [esp + 0x100], 1
call fcn.004a7500
push eax
lea esi, [esp + 0x50]
mov byte [esp + 0x104], 2
call fcn.004b63d0
add esp, 4
test al, al
je 0x4b429b
mov ecx, dword [esp + 0x4c]
push ecx
push str..PhysicalDrive_d
lea edi, [esp + 0x3c]
call fcn.0041b170
add esp, 8
mov al, 1
jmp 0x4b42b2
push 0x4efd08
lea edx, [esp + 0x38]
push edx
xor ebx, ebx
call fcn.0041b280
mov ebx, dword [esp + 0x40]
xor al, al
test al, al
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x14]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b42e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x4b44ee
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.004018f0
mov byte [esp + 0x100], 3
mov ecx, dword [eax]
push ecx
push str.Getting_disk_path_failed_for_volume__s
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x4ecfc4
mov dword [esp + 0x58], 0x38a
mov dword [esp + 0x5c], 1
call fcn.00409c10
mov byte [esp + 0x108], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b4353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x60]
mov byte [esp + 0x100], 4
fldz
lea ecx, [esp + 0x68]
fstp qword [esp + 0x54]
xor ebx, ebx
push ecx
mov ecx, 0x4f497c
mov dword [esp + 0x50], vtable.OperationStatus.0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041b050
mov byte [esp + 0x100], 5
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x64], ebx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x108], 6
call fcn.0041e710
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b43f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4419
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [edi + 0x20], 0
je 0x4b446f
lea ecx, [esp + 0x38]
push ecx
mov ecx, str.Failed_to_get_disk_path_for_volume
call fcn.0041b050
lea edx, [esp + 0x38]
push edx
push 1
mov byte [esp + 0x108], 7
call fcn.004b1b60
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b446a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004b20e0
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4497
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x100], 0xffffffff
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x4b44d4
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b44d4
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4b44d4
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x2c], eax
call fcn.0041b370
add eax, 0x10
mov dword [esp + 0x4c], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
mov byte [esp + 0x11c], 8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x50], edi
test edi, edi
je 0x4b4536
cmp edi, 0xffffffff
jne 0x4b465d
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.004018f0
mov byte [esp + 0x100], 9
mov ecx, dword [eax]
push ecx
push 0x4ed0d0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x4ed0a8
mov dword [esp + 0x28], 0x39a
mov dword [esp + 0x2c], 1
call fcn.00409c10
mov byte [esp + 0x108], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b459d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x100], 1
test edi, edi
je 0x4b45b5
cmp edi, 0xffffffff
je 0x4b45b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b45d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x100], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b45fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x100], 0xffffffff
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4b44d4
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b44d4
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4b44d4
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
call fcn.004b2f50
lea esi, [esp + 0x14]
mov eax, ebx
mov byte [esp + 0x48], 0x40
call fcn.004018f0
mov byte [esp + 0x100], 0xa
mov ecx, dword [esp + 0x34]
mov edx, dword [eax]
push ecx
push edx
push str.Executing_Trim_for_volume__s_on_disk__s
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x4ed11c
mov dword [esp + 0x2c], 0x3a2
mov dword [esp + 0x30], 1
call fcn.00409c10
mov byte [esp + 0x10c], 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b46d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x40]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, 0
mov dword [esp + 0x38], eax
je 0x4b493a
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x40]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 4
test ecx, ecx
je 0x4b4922
cmp byte [esi + 0x20], 0
je 0x4b475c
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
jne 0x4b475c
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
push eax
call edi
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [esi + 0x60]
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x54]
push eax
push 1
call fcn.004ab480
add esp, 8
test al, al
je 0x4b49f7
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x40]
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x54]
push edi
push eax
add ecx, ebx
push edx
mov dword [esp + 0x40], 0
call fcn.004b32e0
cmp eax, 1
je 0x4b47ac
cmp eax, 2
jne 0x4b47c0
cmp byte [esp + 0x48], 0x40
jne 0x4b47c0
mov byte [esp + 0x48], 0
sub edi, 0x40
jmp 0x4b4902
cmp eax, 1
je 0x4b4a32
cmp eax, 2
je 0x4b4c1c
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x14]
inc dword [esi + 0x5c]
mov eax, dword [esi + 0x40]
test ecx, ecx
jns 0x4b47ea
fadd qword [0x4f64d8]
fld1
mov edx, edi
fld st(0)
mov dword [esp + 0x30], edx
fdiv st(2)
fild dword [esp + 0x30]
test edx, edx
jns 0x4b4804
fadd qword [0x4f64d8]
mov ecx, dword [eax + ebx + 4]
fmulp st(1)
sub ecx, dword [eax + ebx]
sar ecx, 4
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
test ecx, ecx
jns 0x4b4822
fadd qword [0x4f64d8]
mov edx, dword [esp + 0x38]
fdivp st(1)
fild dword [esp + 0x38]
test edx, edx
jns 0x4b4836
fadd qword [0x4f64d8]
cmp byte [esi + 0x20], 0
fdivrp st(3)
fld qword [ebp + 0x10]
fsub st(2), st(0)
fxch st(3)
fmulp st(2)
faddp st(1)
faddp st(1)
fst qword [esp + 0x1c]
je 0x4b4861
sub esp, 8
fstp qword [esp]
call fcn.004b1a80
call fcn.004b2020
jmp 0x4b4863
fstp st(0)
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push eax
mov ecx, 0x4ed174
call fcn.0041b050
fld qword [esp + 0x20]
mov ecx, dword [esi + 0x60]
push 0x4ed278
sub esp, 8
fstp qword [esp]
push 2
push ecx
lea edx, [esp + 0xb4]
push edx
call fcn.0042d760
push eax
mov eax, dword [ebp + 0xc]
push eax
mov byte [esp + 0x108], 0x13
call fcn.0041e710
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b48d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b48f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9c], vtable.IStatus.0
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + ebx + 4]
sub ecx, dword [eax + ebx]
add edi, 0x40
sar ecx, 4
mov dword [esp + 0x1c], edi
cmp edi, ecx
jb 0x4b4725
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
add dword [esp + 0x3c], 0x14
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x14]
jb 0x4b4706
mov ecx, edi
call fcn.004b2fe0
cmp byte [esi + 0x20], 0
je 0x4b494c
call fcn.004b21a0
push edi
mov byte [esp + 0x104], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b497b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x100], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b49a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x100], 0xffffffff
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4b49dd
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b49dd
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4b49dd
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov al, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, 1
push str.Aborting_Trimming
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x4ed1c8
mov dword [esp + 0x24], 0x3b8
mov dword [esp + 0x28], ebx
call fcn.00409c10
mov byte [esp + 0x104], bl
mov edx, dword [esp + 0x54]
add esp, 4
push edx
jmp 0x4b45af
call fcn.004ac1b0
test al, al
je 0x4b4a74
mov edi, dword [ebp + 0xc]
push esi
call fcn.004b3a50
test al, al
je 0x4b4a74
mov byte [esp + 0x100], 1
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4b496f
mov ecx, dword [esp + 0x34]
push ecx
push str.Trim_failed_for_disk__s
lea eax, [esp + 0x24]
mov dword [esp + 0x24], str.SsdOptimizer::PerformDefragglerTrims
mov dword [esp + 0x28], 0x3cd
mov dword [esp + 0x2c], 1
call fcn.00409c10
mov edi, dword [esi + 0x60]
add esp, 8
mov byte [esp + 0x100], 0xb
fldz
xor ebx, ebx
fstp qword [esp + 0x7c]
lea edx, [esp + 0x90]
push edx
mov ecx, 0x4f497c
mov dword [esp + 0x78], vtable.OperationStatus.0
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.0041b050
mov byte [esp + 0x100], 0xc
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
add eax, 0x10
mov dword [esp + 0x94], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 7
mov dword [esp + 0x8c], ebx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x74]
push eax
push ecx
mov byte [esp + 0x108], 0xd
call fcn.0041e710
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b4b5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4b82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esi + 0x20], 0
je 0x4b4bd8
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4ed218
call fcn.0041b050
lea edx, [esp + 0x14]
push edx
push 3
mov byte [esp + 0x108], 0xe
call fcn.004b1b60
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004b20e0
mov byte [esp + 0x100], 1
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b4c0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x100], 0
jmp 0x4b447e
mov edi, dword [esi + 0x60]
mov byte [esp + 0x100], 0xf
fldz
lea ecx, [esp + 0x90]
fstp qword [esp + 0x7c]
xor ebx, ebx
push ecx
mov ecx, 0x4f497c
mov dword [esp + 0x78], vtable.OperationStatus.0
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.0041b050
mov byte [esp + 0x100], 0x10
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [esp + 0x94], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 6
mov dword [esp + 0x8c], ebx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x74]
push ecx
push edx
mov byte [esp + 0x108], 0x11
call fcn.0041e710
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4cda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4cfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esi + 0x20], 0
je 0x4b4d53
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.Trim_aborted_by_device
call fcn.0041b050
lea edx, [esp + 0x14]
push edx
push 4
mov byte [esp + 0x108], 0x12
call fcn.004b1b60
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004b21a0
mov byte [esp + 0x100], 1
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b4d86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x100], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b4dab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x100], 0xffffffff
mov esi, dword [esp + 0x44]
cmp esi, ebx
jmp 0x4b49b1