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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x60]
push edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x44f6b9
cmp eax, edi
jne 0x44f6b9
inc dword [ebx + 0x18]
jmp 0x44f6dd
mov al, byte [ebx + 5]
test al, al
je 0x44f6cc
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x44f6d3
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], edi
mov eax, dword [esi + 0x9c]
mov edi, 0xfffffffe
test edi, eax
jne 0x44f742
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x44f711
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x44f711
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
jne 0x44f711
dec dword [ebx + 0x18]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 5]
test al, al
mov dword [ebx + 0x14], 0
je 0x44f732
add ebx, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x699024
push 0x697ffc
push 0
push str.ss_filmstrip
call fcn.004fdfa0
add esp, 4
push eax
call fcn.004893f8
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x9c]
add esp, 0x14
test edi, eax
mov dword [esp + 0x24], 0
jbe 0x450074
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x98]
shl eax, 4
mov dword [esp + 0x34], eax
add eax, ecx
mov ecx, dword [esi + 0x10]
lea edx, [eax + 8]
push edx
add eax, 4
push eax
call fcn.0045dd20
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x4500a6
push eax
mov ecx, esi
call fcn.00451400
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x44faa9
mov esi, dword [esp + 0x18]
lea edi, [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x44f7e4
cmp eax, ebx
jne 0x44f7e4
inc dword [edi + 0x18]
jmp 0x44f808
mov al, byte [edi + 5]
test al, al
je 0x44f7f7
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x44f7fe
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], ebx
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x34]
fld qword [eax + ecx + 8]
lea ecx, [eax + ecx + 8]
fcomp qword [0x6600c8]
fnstsw ax
test ah, 0x44
jnp 0x44f84a
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x58]
lea esi, [esi + esi*2]
shl esi, 3
lea edx, [eax + esi + 8]
push edx
call fcn.004a7380
test al, al
jne 0x44f87f
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + eax]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x2c]
je 0x44fbf0
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x58]
lea esi, [esi + esi*2]
shl esi, 3
cmp eax, dword [ecx + esi + 4]
je 0x44fbec
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x44f891
mov edx, dword [esp + 0x28]
push edx
call fcn.0044b760
mov eax, dword [edi + 0x3c]
test al, 1
jne 0x44fa81
shr eax, 1
test eax, eax
je 0x44fa81
mov ebx, dword [esp + 0x28]
dec eax
cmp ebx, eax
jae 0x44f8ee
nop
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + esi + 0x18]
mov dword [eax + esi], ecx
mov edx, dword [eax + esi + 0x1c]
mov dword [eax + esi + 4], edx
mov ecx, dword [eax + esi + 0x20]
mov dword [eax + esi + 8], ecx
mov edx, dword [eax + esi + 0x24]
lea ecx, [eax + esi + 0x28]
push ecx
lea ecx, [eax + esi + 0x10]
mov dword [eax + esi + 0xc], edx
call fcn.00436200
mov edx, dword [edi + 0x3c]
shr edx, 1
inc ebx
add esi, 0x18
dec edx
cmp ebx, edx
jb 0x44f8b0
mov ecx, dword [edi + 0x3c]
mov eax, ecx
shr eax, 1
lea ebx, [eax - 1]
and ecx, 1
cmp ebx, eax
mov dword [esp + 0x20], ebx
je 0x44fa81
test ecx, ecx
je 0x44f9ac
test ebx, ebx
mov dword [esp + 0x20], 0
je 0x44f982
lea eax, [ebx + ebx*2]
lea ecx, [eax*8 + 4]
push ecx
call fcn.00489377
add esp, 4
test eax, eax
je 0x44f997
push fcn.004503a0
push ebx
lea esi, [eax + 4]
push 0x18
push esi
mov dword [eax], ebx
call fcn.00430db0
test esi, esi
mov dword [esp + 0x20], esi
je 0x44f997
mov eax, dword [edi + 0x3c]
shr eax, 1
cmp eax, ebx
jbe 0x44f958
mov eax, ebx
test eax, eax
jbe 0x44f982
xor esi, esi
mov dword [esp + 0x14], eax
mov edx, dword [edi + 0x38]
mov eax, dword [esp + 0x20]
add edx, esi
push edx
lea ecx, [esi + eax]
call fcn.004517c0
mov eax, dword [esp + 0x14]
add esi, 0x18
dec eax
mov dword [esp + 0x14], eax
jne 0x44f962
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x44f990
push 3
call fcn.00451d70
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x38], ecx
mov edx, dword [edi + 0x3c]
lea eax, [ebx + ebx]
xor edx, eax
and edx, 1
xor edx, eax
mov dword [edi + 0x3c], edx
jmp 0x44fa81
mov esi, 1
cmp ebx, esi
jb 0x44f9bb
add esi, esi
cmp esi, ebx
jbe 0x44f9b5
xor edx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
fild qword [esp + 0x50]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x44f9e6
mov edx, 1
shl edx, cl
cmp edx, eax
jae 0x44f9ec
add edx, edx
cmp edx, esi
je 0x44fa71
xor ebx, ebx
test esi, esi
je 0x44fa5c
lea eax, [esi + esi*2]
lea ecx, [eax*8 + 4]
push ecx
call fcn.00489377
add esp, 4
test eax, eax
je 0x44fa6d
push fcn.004503a0
push esi
lea ebx, [eax + 4]
push 0x18
push ebx
mov dword [eax], esi
call fcn.00430db0
test ebx, ebx
je 0x44fa6d
mov eax, dword [edi + 0x3c]
shr eax, 1
cmp eax, esi
jbe 0x44fa33
mov eax, esi
test eax, eax
jbe 0x44fa5c
xor esi, esi
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov edx, dword [edi + 0x38]
add edx, esi
push edx
lea ecx, [esi + ebx]
call fcn.004517c0
mov eax, dword [esp + 0x14]
add esi, 0x18
dec eax
mov dword [esp + 0x14], eax
jne 0x44fa40
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x44fa6a
push 3
call fcn.00451d70
mov dword [edi + 0x38], ebx
mov ebx, dword [esp + 0x20]
mov ecx, dword [edi + 0x3c]
lea eax, [ebx + ebx]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [edi + 0x3c], ecx
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44fbc3
mov eax, dword [edi + 0x14]
test eax, eax
je 0x44fbc3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x14], eax
jne 0x44fbc3
dec dword [edi + 0x18]
mov ecx, dword [0x6600c8]
mov edx, dword [0x6600cc]
xor esi, esi
push esi
push esi
mov dword [esp + 0x98], ecx
push esi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x64], 0
mov byte [esp + 0x65], 0
mov byte [esp + 0x66], 0
mov byte [esp + 0x67], 0
mov byte [esp + 0x68], 0
mov byte [esp + 0x69], 0
mov byte [esp + 0x6a], 0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], 0xbf800000
mov dword [esp + 0x8c], 0xbf800000
mov dword [esp + 0x90], 0xbf800000
mov dword [esp + 0x94], 0xbf800000
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
call fcn.004998c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x64]
push eax
push ecx
mov ecx, dword [edx + 0x10]
call fcn.0045f6e0
test eax, eax
jne 0x44ff8d
mov al, byte [esp + 0x5c]
test al, al
jne 0x44ff8d
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44fc3a
cmp eax, edi
jne 0x44fc3a
inc dword [esi + 0x18]
jmp 0x44fc5e
mov al, byte [edi + 5]
test al, al
mov dword [edi + 0x14], 0
je 0x44fbe0
add edi, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x44faa9
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
jmp 0x44faa9
mov esi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44fc11
mov eax, dword [edi + 0x14]
test eax, eax
je 0x44fc11
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x14], eax
jne 0x44fc11
dec dword [edi + 0x18]
jmp 0x45005b
mov al, byte [edi + 5]
test al, al
mov dword [edi + 0x14], 0
je 0x44fc2e
add edi, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45005b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
jmp 0x45005b
mov al, byte [esi + 5]
test al, al
je 0x44fc4d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x44fc54
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 0x98]
mov edi, dword [esp + 0x34]
fld qword [eax + edi + 8]
lea edx, [eax + edi]
fcomp qword [0x6600c8]
fnstsw ax
test ah, 0x44
jnp 0x44fc84
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
jmp 0x44fca8
mov edx, dword [edx + 4]
test edx, edx
je 0x44fc90
lea eax, [edx + 4]
jmp 0x44fc92
xor eax, eax
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.004b55b0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov eax, dword [ebx + 0x98]
mov eax, dword [edi + eax]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x38], edi
mov edi, eax
mov eax, dword [esp + 0x98]
test eax, eax
mov dword [esp + 0x44], edx
mov edx, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
je 0x44fcf7
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x44fcf7
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0x3c]
shr eax, 1
test eax, eax
je 0x44fe65
mov ecx, dword [esi + 0x38]
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8 - 0x18]
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x44fde0
lea edx, [esp + 0x40]
lea edi, [esi + 8]
push edx
mov ecx, edi
call fcn.004a7350
test al, al
je 0x44fdca
mov esi, dword [esi + 0x10]
test esi, esi
mov edx, dword [esp + 0x48]
je 0x44fd92
test edx, edx
je 0x44fdb8
lea eax, [edx + 4]
test eax, eax
je 0x44fdad
test esi, esi
je 0x44fd53
add esi, 4
jmp 0x44fd55
xor esi, esi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x44fd82
test cl, cl
je 0x44fd75
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x44fd82
add eax, 2
add esi, 2
test cl, cl
jne 0x44fd55
mov ebx, dword [esp + 0x18]
xor eax, eax
test eax, eax
setg al
jmp 0x44fde3
mov ebx, dword [esp + 0x18]
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setg al
jmp 0x44fde3
test edx, edx
je 0x44fdb8
lea eax, [edx + 4]
test eax, eax
je 0x44fdad
mov ebx, dword [esp + 0x18]
mov eax, 1
test eax, eax
setg al
jmp 0x44fde3
test edx, edx
je 0x44fdb8
lea eax, [edx + 4]
test eax, eax
jne 0x44fd75
test esi, esi
je 0x44fd75
mov ebx, dword [esp + 0x18]
or eax, 0xffffffff
test eax, eax
setg al
jmp 0x44fde3
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.004a7330
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
jmp 0x44fde3
setl al
test al, al
jne 0x44fe65
mov esi, dword [ebx + 0x5c]
lea eax, [ebx + 0x20]
shr esi, 1
xor edi, edi
dec esi
mov dword [esp + 0x14], esi
je 0x44fe33
lea esp, [esp]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x1c]
add esi, edi
lea eax, [edx + 0x20]
mov eax, dword [eax + 0x38]
shr esi, 1
lea ecx, [esi + esi*2]
lea ecx, [eax + ecx*8]
call fcn.004503d0
test al, al
je 0x44fe2b
lea edi, [esi + 1]
mov esi, dword [esp + 0x14]
jmp 0x44fe2f
mov dword [esp + 0x14], esi
cmp edi, esi
jb 0x44fe00
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax + 0x58]
lea esi, [eax + 0x20]
lea edx, [edi + edi*2]
lea ecx, [ecx + edx*8]
call fcn.004503d0
test al, al
je 0x44fe52
inc edi
lea edx, [esp + 0x38]
push edx
push edi
mov ecx, esi
call fcn.00451910
mov edx, dword [esp + 0x48]
jmp 0x44feb8
mov eax, dword [ebx + 0x5c]
test al, 1
lea esi, [ebx + 0x20]
jne 0x44feb2
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x44fe83
mov ecx, esi
call fcn.004520e0
test eax, eax
je 0x44feae
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
shr eax, 1
lea edx, [esp + 0x38]
lea eax, [eax + eax*2]
push edx
lea ecx, [ecx + eax*8]
call fcn.004517c0
mov eax, dword [esi + 0x3c]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x48]
mov edi, dword [esi + 0x3c]
shr edi, 1
dec edi
test edx, edx
je 0x44ff11
mov eax, dword [edx]
and eax, 0xff
cmp eax, 0x80
mov ebx, edx
jae 0x44ff11
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x44ff00
mov ecx, dword [ebx]
and ecx, 0xff
cmp ecx, 0x80
jae 0x44fefb
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x44ff00
mov eax, 0xff
test eax, eax
jne 0x44ff11
mov edx, dword [esp + 0x48]
push edx
call fcn.00499410
add esp, 4
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 0x48], 0
je 0x44ff49
push edi
mov ecx, ebx
call fcn.0044b370
cmp dword [esp + 0x28], 0xffffffff
je 0x44ff49
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x14]
jne 0x44ff49
push 0
push 1
push edi
mov ecx, ebx
call fcn.0044c910
mov eax, dword [esi + 0x18]
test eax, eax
mov byte [esp + 0x1f], 1
je 0x44ff6c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44ff6c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x44ff6c
dec dword [esi + 0x18]
jmp 0x44ff8d
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], 0
je 0x44ff86
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x44ff8d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esp + 0xac]
call fcn.00499ac0
lea ecx, [esp + 0xa8]
call fcn.004039f0
xor edi, edi
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa8], edi
call fcn.004039f0
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa4], edi
call fcn.004039f0
lea ecx, [esp + 0x9c]
mov dword [esp + 0xa0], edi
call fcn.004039f0
mov eax, dword [esp + 0x98]
cmp eax, edi
mov dword [esp + 0x9c], edi
je 0x45004c
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x45004c
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x450038
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x450033
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x450038
mov eax, 0xff
cmp eax, edi
jne 0x45004c
mov eax, dword [esp + 0x98]
push eax
call fcn.00499410
add esp, 4
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x98], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x9c]
inc eax
shr ecx, 1
cmp eax, ecx
mov dword [esp + 0x24], eax
jb 0x44f780
mov eax, dword [ebx + 0x3c]
mov ecx, eax
shr eax, 1
xor edx, edx
and ecx, 1
cmp eax, edx
je 0x4501df
cmp ecx, edx
je 0x4500fc
mov ecx, dword [ebx + 0x38]
cmp ecx, edx
je 0x45009a
push 3
call fcn.00451ec0
mov dword [ebx + 0x38], 0
jmp 0x4501db
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4500cb
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4500cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
jne 0x4500cb
dec dword [ebx + 0x18]
or al, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 5]
test al, al
mov dword [ebx + 0x14], 0
je 0x4500ec
add ebx, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or al, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
or al, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
fild qword [esp + 0x50]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x450125
mov edx, 1
shl edx, cl
cmp edx, eax
jae 0x45012b
add edx, edx
cmp edx, 1
je 0x4501db
push 0x14
call fcn.00489377
add esp, 4
test eax, eax
je 0x4501db
lea esi, [eax + 4]
mov ecx, esi
mov dword [eax], 1
mov dword [esp + 0x14], esi
call fcn.0044edb0
test esi, esi
je 0x4501db
mov eax, dword [ebx + 0x3c]
shr eax, 1
cmp eax, 1
jbe 0x450171
mov eax, 1
test eax, eax
jbe 0x4501c6
mov edx, dword [esp + 0x14]
mov ecx, 0xfffffff8
sub ecx, edx
lea edi, [edx + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
nop
lea esp, [esp]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x38]
lea esi, [eax + edi]
add esi, ecx
mov ecx, dword [esi]
lea edx, [esi + 4]
mov dword [edi - 8], ecx
push edx
lea ecx, [edi - 4]
call fcn.00436200
mov eax, dword [esi + 8]
mov dword [edi], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
mov dword [edi + 4], ecx
add edi, 0x10
dec eax
mov dword [esp + 0x10], eax
jne 0x450190
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x4501d4
push 3
call fcn.00451ec0
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x38], edx
and dword [ebx + 0x3c], 1
mov al, byte [esp + 0x1f]
test al, al
je 0x450332
mov ecx, dword [esp + 0x18]
push 0
call fcn.00451630
test eax, eax
mov dword [esp + 0x10], eax
je 0x45024c
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x450225
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x450225
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
jne 0x450225
dec dword [ebx + 0x18]
mov al, byte [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x14], 0
mov al, byte [ebx + 5]
test al, al
je 0x450357
add ebx, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x14]
push ecx
mov ecx, edi
call fcn.00451400
mov dword [esp + 0x14], eax
lea esi, [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45027e
cmp eax, dword [esp + 0x10]
jne 0x45027e
inc dword [esi + 0x18]
jmp 0x4502a6
mov al, byte [esi + 5]
test al, al
je 0x450291
lea edx, [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x450298
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x5c]
shr eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4502cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4502cd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x4502cd
dec dword [esi + 0x18]
jmp 0x4502ee
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], 0
je 0x4502e7
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4502ee
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
cmp dword [esp + 0x14], 0xffffffff
je 0x450332
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x450332
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
mov edx, dword [esp + 0x14]
add eax, ecx
add eax, edx
xor edx, edx
div ecx
mov ecx, edi
push edx
call fcn.00451520
cmp eax, 0xffffffff
je 0x450332
mov ecx, dword [edi + 0x10]
push eax
call fcn.004621d0
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4501fe
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x450369
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x450369
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
jne 0x450369
dec dword [ebx + 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov al, byte [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 5]
test al, al
mov dword [ebx + 0x14], 0
je 0x45038a
add ebx, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret