Function at 0x467870
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x388], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
call fcn.00425f10
fstp qword [ebx + 0xf0]
test esi, esi
je 0x468672
cmp byte [esi], 0
je 0x468672
mov eax, esi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4678c6
sub eax, edx
push esi
lea edi, [esp + 0x14]
call fcn.0044a090
push 0x55742c
mov ecx, edi
push ecx
call fcn.00449dd0
movzx eax, byte [esp + 0x4c]
or eax, 0x100
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
lea edx, [esp + 0x4c]
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], 0x80
mov byte [esp + 0x50], 0
je 0x467951
cmp eax, 0x467850
je 0x467920
cmp eax, 0x467850
jne 0x467951
cmp dword [0x59d5d0], 0x80000000
jae 0x467951
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x467939
add eax, 4
jmp 0x46793b
xor eax, eax
push edi
push edi
push 1
lea ecx, [esp + 0x25c]
push ecx
push edi
push eax
call dword [0x59e00c]
jmp 0x46796f
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x46795e
add eax, 4
jmp 0x467960
xor eax, eax
lea edx, [esp + 0x250]
push edx
push eax
call dword [0x59e008]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x4679b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x48]
mov esi, eax
call fcn.00401070
lea edi, [esp + 0x10]
mov dword [esp + 0x48], 0
call fcn.00401070
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
and eax, 4
mov dword [esp + 0x24], eax
je 0x467a47
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov eax, dword [ebx + 0x20]
cmp eax, edi
je 0x4679dc
cmp eax, esi
jne 0x4679dc
add dword [ebx + 0x24], 1
jmp 0x4679fd
cmp byte [ebx + 0xc], 0
je 0x4679ee
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4679f7
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], esi
lea eax, [ebx + 0xe0]
lea esi, [esp + 0x10]
call fcn.004010e0
cmp dword [ebx + 0x24], edi
je 0x467a27
cmp dword [ebx + 0x20], edi
je 0x467a27
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x20], eax
jne 0x467a27
add dword [ebx + 0x24], 0xffffffff
jmp 0x467a79
cmp byte [ebx + 0xc], 0
mov dword [ebx + 0x20], edi
je 0x467a3c
lea ecx, [ebx + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x467a79
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
mov ecx, ebx
call eax
jmp 0x467a79
mov eax, esi
mov dword [esp + 0xc], edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467a50
mov ecx, esi
sub eax, edx
push ecx
lea edi, [esp + 0x10]
call fcn.0044a090
lea eax, [ebx + 0xe0]
mov esi, edi
call fcn.004010e0
call fcn.00401070
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x30]
fstp qword [esp + 0x30]
fldz
fcomp dword [ebx + 0x48]
fnstsw ax
test ah, 0x44
jnp 0x467b21
lea eax, [esp + 0x30]
push eax
call fcn.00425eb0
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp qword [0x568238]
fnstsw ax
test ah, 0x41
jne 0x467b0c
lea ecx, [esp + 0x30]
push ecx
call fcn.00425eb0
fstp dword [esp + 0x18]
fld dword [ebx + 0x48]
fmul dword [esp + 0x18]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
push edx
fldcw word [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x40]
fstp qword [esp + 0x30]
fldz
fcomp dword [ebx + 0x48]
fnstsw ax
test ah, 0x44
jnp 0x467b21
lea edi, [esp + 0xc]
call fcn.0043a6f0
mov al, byte [esp + 0x250]
test al, 2
je 0x467b36
test byte [ebp + 0xc], 2
je 0x468601
test al, 0x10
je 0x467d18
cmp byte [esp + 0x27c], 0x2e
jne 0x467b69
mov al, byte [esp + 0x27d]
test al, al
je 0x468601
cmp al, 0x2e
je 0x468601
test byte [ebp + 0xc], 2
je 0x468601
add dword [ebx + 0xdc], 1
cmp dword [esp + 0x24], 0
je 0x467d12
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467b90
mov ecx, dword [esp + 0x14]
sub eax, edx
push ecx
lea edi, [esp + 0x10]
call fcn.0044a090
mov esi, edi
lea eax, [esp + 0x10]
call fcn.004010e0
call fcn.00401070
lea eax, [esp + 0x27c]
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
jmp 0x467bd0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467bd0
sub eax, edx
lea edx, [esp + 0x27c]
push edx
lea edi, [esp + 0x10]
call fcn.0044a090
mov eax, dword [esp + 0xc]
test eax, eax
je 0x467bf9
add eax, 4
jmp 0x467bfb
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00449dd0
lea edi, [esp + 0xc]
call fcn.00401070
push 0x5577e0
lea ecx, [esp + 0x14]
push ecx
call fcn.00449dd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x467c2b
add eax, 4
jmp 0x467c2d
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00467870
test eax, eax
jne 0x468601
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
test al, al
jne 0x468629
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov eax, dword [ebx + 0x20]
xor edi, edi
cmp eax, edi
je 0x467c72
cmp eax, esi
jne 0x467c72
add dword [ebx + 0x24], 1
jmp 0x467c93
cmp byte [ebx + 0xc], 0
je 0x467c84
lea ecx, [ebx + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x467c8d
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467ca0
mov ecx, dword [esp + 0x14]
sub eax, edx
push ecx
lea edi, [esp + 0x10]
call fcn.0044a090
mov esi, edi
lea eax, [ebx + 0xe0]
call fcn.004010e0
call fcn.00401070
cmp dword [ebx + 0x24], 0
je 0x467cec
cmp dword [ebx + 0x20], 0
je 0x467cec
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x20], eax
jne 0x467cec
add dword [ebx + 0x24], 0xffffffff
test byte [ebp + 0xc], 1
jmp 0x467d20
cmp byte [ebx + 0xc], 0
mov dword [ebx + 0x20], 0
je 0x467d09
lea edx, [ebx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [ebp + 0xc], 1
jmp 0x467d20
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
test byte [ebp + 0xc], 1
jmp 0x467d20
cmp dword [esp + 0x20], 0x467850
je 0x468601
lea edx, [esp + 0x27c]
lea edi, [esp + 0x48]
call fcn.0045d7c0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x467d4e
mov ecx, edi
push ecx
call eax
add esp, 4
test eax, eax
jne 0x468601
test byte [ebp + 0xc], 0x10
mov dword [esp + 0xc], 0
je 0x467d99
lea eax, [esp + 0x27c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467d66
sub eax, edx
lea edx, [esp + 0x27c]
push edx
lea edi, [esp + 0x10]
call fcn.0044a090
mov esi, edi
lea eax, [esp + 0x10]
call fcn.004010e0
call fcn.00401070
xor esi, esi
jmp 0x467e3a
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467da0
mov ecx, dword [esp + 0x14]
sub eax, edx
push ecx
lea edi, [esp + 0x10]
call fcn.0044a090
mov esi, edi
lea eax, [esp + 0x10]
call fcn.004010e0
call fcn.00401070
lea eax, [esp + 0x27c]
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
jmp 0x467de0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467de0
sub eax, edx
lea edx, [esp + 0x27c]
push edx
lea edi, [esp + 0x10]
call fcn.0044a090
mov eax, dword [esp + 0xc]
xor esi, esi
cmp eax, esi
je 0x467e0b
add eax, 4
jmp 0x467e0d
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00449dd0
lea edi, [esp + 0xc]
call fcn.00401070
test byte [esp + 0x250], 0x10
je 0x467e3a
push 0x5577e0
lea ecx, [esp + 0x14]
push ecx
call fcn.00449dd0
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call edx
test eax, eax
jne 0x468601
cmp dword [esp + 0x24], esi
jne 0x467e64
test dword [ebp + 0xc], 0x400
je 0x467e9e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [ebx + 0x20]
cmp eax, esi
je 0x467e7d
cmp eax, edi
jne 0x467e7d
add dword [ebx + 0x24], 1
jmp 0x467e9e
cmp byte [ebx + 0xc], 0
je 0x467e8f
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x467e98
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x20], edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebx + 0x4c]
push edx
call fcn.00401fe0
test byte [ebp + 0xc], 0x20
je 0x467fee
lea eax, [esp + 0x380]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467ec0
sub eax, edx
je 0x467f5e
lea eax, [esp + 0x380]
mov dword [esp + 0x18], esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467ee0
lea ecx, [esp + 0x380]
sub eax, edx
push ecx
lea edi, [esp + 0x1c]
call fcn.0044a090
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467f07
sub eax, edx
mov edx, dword [esp + 0x14]
push edx
lea edi, [esp + 0x10]
call fcn.0044a090
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x40]
mov eax, edi
call fcn.00401130
push eax
lea ecx, [ebx + 0x80]
push ecx
call fcn.00401fe0
mov edi, esi
call fcn.00401070
lea edi, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.00401070
lea edi, [esp + 0x18]
jmp 0x467fe9
lea eax, [esp + 0x27c]
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467f70
sub eax, edx
lea edx, [esp + 0x27c]
push edx
lea edi, [esp + 0x10]
call fcn.0044a090
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x467f97
mov ecx, dword [esp + 0x14]
sub eax, edx
push ecx
lea edi, [esp + 0x1c]
call fcn.0044a090
lea edx, [esp + 0xc]
push edx
lea esi, [esp + 0x30]
mov eax, edi
call fcn.00401130
push eax
lea eax, [ebx + 0x80]
push eax
call fcn.00401fe0
mov edi, esi
call fcn.00401070
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.00401070
lea edi, [esp + 0xc]
call fcn.00401070
mov al, byte [ebp + 0xc]
test al, 0x40
je 0x468322
mov ecx, dword [ebx + 0xc8]
test cl, 1
mov edi, dword [esp + 0x264]
mov esi, dword [esp + 0x268]
jne 0x4680c1
shr ecx, 1
lea edx, [ecx*8]
cmp edx, 0x100000
mov eax, ecx
jae 0x468040
lea edx, [ecx - 1]
test ecx, edx
jne 0x46804a
test ecx, ecx
je 0x468039
lea eax, [ecx + ecx]
jmp 0x46804a
mov eax, 1
jmp 0x46804a
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x46808d
test eax, eax
je 0x468070
mov ecx, dword [ebx + 0xc4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xc4], eax
jmp 0x46808d
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x46808d
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xc4], 0
mov ecx, dword [ebx + 0xc4]
mov eax, ecx
test eax, eax
je 0x4680c1
mov eax, dword [ebx + 0xc8]
shr eax, 1
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 0xc8]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0xc8], edx
mov ecx, dword [ebx + 0xc0]
test cl, 1
mov esi, dword [esp + 0x254]
mov edi, dword [esp + 0x258]
jne 0x468189
shr ecx, 1
lea edx, [ecx*8]
cmp edx, 0x100000
mov eax, ecx
jae 0x468108
lea edx, [ecx - 1]
test ecx, edx
jne 0x468112
test ecx, ecx
je 0x468101
lea eax, [ecx + ecx]
jmp 0x468112
mov eax, 1
jmp 0x468112
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x468155
test eax, eax
je 0x468138
mov ecx, dword [ebx + 0xbc]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xbc], eax
jmp 0x468155
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x468155
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xbc], 0
mov ecx, dword [ebx + 0xbc]
mov eax, ecx
test eax, eax
je 0x468189
mov eax, dword [ebx + 0xc0]
shr eax, 1
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebx + 0xc0]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0xc0], edx
mov ecx, dword [ebx + 0xd0]
test cl, 1
mov esi, dword [esp + 0x25c]
mov edi, dword [esp + 0x260]
jne 0x468251
shr ecx, 1
lea edx, [ecx*8]
cmp edx, 0x100000
mov eax, ecx
jae 0x4681d0
lea edx, [ecx - 1]
test ecx, edx
jne 0x4681da
test ecx, ecx
je 0x4681c9
lea eax, [ecx + ecx]
jmp 0x4681da
mov eax, 1
jmp 0x4681da
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x46821d
test eax, eax
je 0x468200
mov ecx, dword [ebx + 0xcc]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xcc], eax
jmp 0x46821d
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x46821d
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xcc], 0
mov ecx, dword [ebx + 0xcc]
mov eax, ecx
test eax, eax
je 0x468251
mov eax, dword [ebx + 0xd0]
shr eax, 1
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebx + 0xd0]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0xd0], edx
mov ecx, dword [ebx + 0xb8]
test cl, 1
mov edi, dword [esp + 0x264]
mov esi, dword [esp + 0x268]
jne 0x4684ba
shr ecx, 1
lea edx, [ecx*8]
cmp edx, 0x100000
mov eax, ecx
jae 0x468298
lea edx, [ecx - 1]
test ecx, edx
jne 0x4682a2
test ecx, ecx
je 0x468291
lea eax, [ecx + ecx]
jmp 0x4682a2
mov eax, 1
jmp 0x4682a2
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x4682e5
test eax, eax
je 0x4682c8
mov ecx, dword [ebx + 0xb4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xb4], eax
jmp 0x4682e5
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x4682e5
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xb4], 0
mov ecx, dword [ebx + 0xb4]
mov eax, ecx
test eax, eax
je 0x4684ba
mov eax, dword [ebx + 0xb8]
shr eax, 1
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 0xb8]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0xb8], edx
jmp 0x4684ba
test al, al
jns 0x4684ba
mov ecx, dword [ebx + 0xc0]
test cl, 1
mov edi, dword [esp + 0x254]
mov esi, dword [esp + 0x258]
jne 0x4683f2
shr ecx, 1
lea edx, [ecx*8]
cmp edx, 0x100000
mov eax, ecx
jae 0x468371
lea edx, [ecx - 1]
test ecx, edx
jne 0x46837b
test ecx, ecx
je 0x46836a
lea eax, [ecx + ecx]
jmp 0x46837b
mov eax, 1
jmp 0x46837b
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x4683be
test eax, eax
je 0x4683a1
mov ecx, dword [ebx + 0xbc]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xbc], eax
jmp 0x4683be
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x4683be
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xbc], 0
mov ecx, dword [ebx + 0xbc]
mov eax, ecx
test eax, eax
je 0x4683f2
mov eax, dword [ebx + 0xc0]
shr eax, 1
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebx + 0xc0]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0xc0], edx
mov ecx, dword [ebx + 0xb8]
test cl, 1
jne 0x4684ba
shr ecx, 1
lea edx, [ecx*8]
cmp edx, 0x100000
mov eax, ecx
jae 0x46842b
lea edx, [ecx - 1]
test ecx, edx
jne 0x468435
test ecx, ecx
je 0x468424
lea eax, [ecx + ecx]
jmp 0x468435
mov eax, 1
jmp 0x468435
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x468478
test eax, eax
je 0x46845b
mov ecx, dword [ebx + 0xb4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xb4], eax
jmp 0x468478
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x468478
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xb4], 0
mov ecx, dword [ebx + 0xb4]
mov eax, ecx
test eax, eax
je 0x4684ba
mov eax, dword [ebx + 0xb8]
mov edx, dword [esp + 0x254]
shr eax, 1
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x258]
mov dword [ecx + eax*8 + 4], edx
mov eax, dword [ebx + 0xb8]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [ebx + 0xb8], ecx
mov eax, dword [ebp + 0xc]
test eax, 0x100
je 0x468593
mov ecx, dword [ebx + 0xd8]
test cl, 1
jne 0x468581
shr ecx, 1
lea edx, [ecx*4]
cmp edx, 0x100000
mov eax, ecx
jae 0x468501
lea edx, [ecx - 1]
test ecx, edx
jne 0x46850b
test ecx, ecx
je 0x4684fa
lea eax, [ecx + ecx]
jmp 0x46850b
mov eax, 1
jmp 0x46850b
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x46854c
test eax, eax
je 0x46852f
mov ecx, dword [ebx + 0xd4]
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0xd4], eax
jmp 0x46854c
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x46854c
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0xd4], 0
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x468581
mov edx, dword [ebx + 0xd8]
mov ecx, dword [esp + 0x270]
shr edx, 1
mov dword [eax + edx*4], ecx
mov eax, dword [ebx + 0xd8]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0xd8], edx
mov eax, dword [esp + 0x270]
add dword [ebx + 0xe8], eax
mov eax, dword [ebp + 0xc]
jmp 0x4685a7
test eax, 0x200
je 0x4685ae
mov ecx, dword [esp + 0x270]
add dword [ebx + 0xe8], ecx
adc dword [ebx + 0xec], 0
cmp dword [esp + 0x24], 0
jne 0x4685bc
test eax, 0x400
je 0x4685fb
cmp dword [ebx + 0x24], 0
je 0x4685d9
cmp dword [ebx + 0x20], 0
je 0x4685d9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x20], eax
jne 0x4685d9
add dword [ebx + 0x24], 0xffffffff
jmp 0x4685fb
cmp byte [ebx + 0xc], 0
mov dword [ebx + 0x20], 0
je 0x4685f2
lea edx, [ebx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4685fb
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
test byte [ebp + 0xc], 8
jne 0x468629
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
test al, al
jne 0x468629
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x250]
push eax
push ecx
call dword [0x59e010]
test eax, eax
jne 0x467a8c
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00425f10
fstp qword [ebx + 0xf8]
lea edi, [esp + 0x48]
call fcn.00401070
lea edi, [esp + 0x10]
mov dword [esp + 0x48], 0
call fcn.00401070
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x394]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 9
call fcn.005120db
mov esp, ebp
pop ebp
ret 0xc