Function at 0x5b96d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9a5a
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x6b20c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
lea esi, [eax + 8]
mov dword [ebp - 0x60], eax
jg 0x5b971c
jl 0x5b9716
cmp dword [esi], 0
jae 0x5b971c
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [edi + 0xc]
push 0
push 0
push 1
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x38]
test eax, eax
js 0x5b9adb
mov ecx, dword [edi + 0x1c]
push 0
push 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jns 0x5b9842
sub esp, 8
lea ecx, [ebp - 0x114]
call fcn.00457ff0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x44]
push 0x28
xor eax, eax
mov dword [ebp - 0x34], 0
push str.The_renderer_does_not_support_frame_step
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00457aa0
push 0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00463fea
mov edx, dword [ebp - 0x30]
add esp, 4
cmp edx, 8
jb 0x5b97cb
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5b97c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b9afb
push edx
push ecx
call fcn.0048fd5c
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0045fa70
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x5b9ac5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5b9833
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b9b00
push edx
push ecx
call fcn.0048fd5c
add esp, 8
jmp 0x5b9ac5
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x48], 0
je 0x5b9aa0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x5b990a
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax]
push 0x7530
push ecx
call ebx
test eax, eax
jne 0x5b9aa0
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x54]
push 0
push edx
lea edx, [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x4c]
push edx
push ecx
call dword [eax + 0x20]
test eax, eax
js 0x5b98ec
nop
push dword [ebp - 0x54]
mov ecx, dword [edi + 8]
push dword [ebp - 0x58]
push dword [ebp - 0x4c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x54]
xor ecx, ecx
cmp dword [ebp - 0x4c], 0x24
push 0
push edx
cmove eax, ecx
lea edx, [ebp - 0x58]
mov ecx, dword [edi + 8]
push edx
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x20]
test eax, eax
jns 0x5b98b0
call esi
mov ecx, dword [ebp - 0x5c]
add ecx, 0x7530
cmp eax, ecx
jae 0x5b9aa0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x5b9880
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x50]
push 0
mov dword [ebp - 0x50], 0
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x90]
test eax, eax
jns 0x5b9946
sub esp, 8
lea ecx, [ebp - 0x114]
call fcn.00457ff0
mov dword [ebp - 4], 4
mov edx, str.Failed_to_GetCurrentImage
jmp 0x5b9aba
push dword [ebp - 0x50]
call fcn.0048fd95
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 5
test esi, esi
jne 0x5b99a0
sub esp, 8
lea ecx, [ebp - 0x114]
call fcn.00457ff0
mov byte [ebp - 4], 6
mov edx, str.Not_enough_memory
lea ecx, [ebp - 0x104]
call fcn.00463f04
lea ecx, [ebp - 0x114]
call fcn.005be1d0
lea ecx, [ebp - 0x114]
call fcn.00457ec0
xor bl, bl
jmp 0x5b9a8d
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x50]
push esi
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x90]
test eax, eax
jns 0x5b99ce
sub esp, 8
lea ecx, [ebp - 0x114]
call fcn.00457ff0
mov byte [ebp - 4], 7
mov edx, str.Failed_to_get_image_buffer
jmp 0x5b9978
cmp word [esi + 0xe], 0x20
lea ebx, [esi + 0xe]
je 0x5b9a7c
sub esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.00457ff0
mov edx, str.Invalid_image_format__cannot_create_thumbnails_out_of
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1b4]
call fcn.00463f04
mov edx, ebx
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00464dbc
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.00463ece
mov edx, str._bpp_dibs.
mov ecx, eax
call fcn.00463f04
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x5b9a62
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5b9a58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5b9b05
push edx
push ecx
call fcn.0048fd5c
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.005be1d0
lea ecx, [ebp - 0x1c4]
call fcn.00457ec0
xor bl, bl
jmp 0x5b9a8d
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
push esi
add ecx, 0x10
call fcn.00457e80
mov bl, 1
test esi, esi
je 0x5b9a9c
push 1
push esi
call fcn.0048fd5c
add esp, 8
mov al, bl
jmp 0x5b9add
sub esp, 8
lea ecx, [ebp - 0x114]
call fcn.00457ff0
mov dword [ebp - 4], 3
mov edx, str.Failed_to_wait_for_EC_STEP_COMPLETE
lea ecx, [ebp - 0x104]
call fcn.00463f04
lea ecx, [ebp - 0x114]
call fcn.005be1d0
lea ecx, [ebp - 0x114]
call fcn.00457ec0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f6ef
mov esp, ebp
pop ebp
ret 4
call fcn.00592e1e
call fcn.00592e1e
call fcn.00592e1e
int3