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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
push edi
test esi, esi
jne 0x429932
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
and eax, 2
mov edx, eax
neg edx
sbb edx, edx
and edx, 0x800
neg eax
mov dword [esp + 0x50], edx
sbb eax, eax
xor edx, edx
and eax, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], eax
cmp edi, 1
je 0x429966
cmp edi, 2
jne 0x4299a1
push 0x20
call fcn.004d3886
mov ecx, eax
mov dword [esp + 0x50], eax
call fcn.004069a0
push eax
push dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x70]
mov ecx, dword [eax + 0x4d8]
mov ecx, dword [ecx + 0xc0]
call fcn.0042f4e0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ebx, ebx
test edi, edi
jne 0x429a3f
cmp dword [ebp + 0xc], ebx
jbe 0x429a08
mov eax, dword [ecx + 0x70]
mov eax, dword [eax + 0x4a8]
mov dword [esp + 0x54], eax
test esi, esi
je 0x4299ff
lea edi, [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push esi
push 0x20
push 0x77fc87de
call fcn.004088a0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4299f4
cmp dword [eax + 0x6c], 0
jne 0x429a31
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
inc ebx
add esi, 0x20
cmp ebx, dword [ebp + 0xc]
jb 0x4299b0
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x429a18
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0xe4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 1
jmp 0x429a0a
cmp edi, 1
jne 0x42a334
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x429a54
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, dword [edx + 0x14]
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x10]
mov eax, edx
sub eax, ecx
cmp eax, 8
jb 0x429a0a
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx + eax]
add eax, 4
mov dword [edi + 0x10], eax
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x429aa1
lea edi, [eax + ecx]
add eax, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov dword [ebx + 0x10], eax
jmp 0x429aa5
mov ebx, dword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
cmp edx, 8
jb 0x429b00
add eax, 4
mov dword [ebx + 0x10], eax
mov edx, dword [eax + ecx]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [ebx + 0x10], eax
test edx, edx
je 0x429b00
lea ebx, [eax + ecx]
mov ecx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x10], ebx
mov dword [ecx + 0x10], eax
test ebx, ebx
je 0x429b00
mov eax, dword [esp + 0x18]
push edi
push edx
push ebx
mov ecx, dword [eax + 0x58]
call fcn.004ac340
mov ebx, eax
test ebx, ebx
jne 0x429a50
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x70]
mov eax, dword [eax + 0x4a8]
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x429b1a
lea ebx, [edi + 1]
jmp 0x429b6e
lea ebx, [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x80]
push eax
push edi
push 0x20
push 0x77fc87de
call fcn.004088a0
mov eax, dword [esp + 0x6c]
push ebx
test eax, eax
jne 0x429b54
call esi
mov ebx, 1
jmp 0x429b6a
mov esi, dword [eax + 0x6c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sete bl
mov ecx, dword [esp + 0x18]
test byte [ebp + 0x14], 1
je 0x429b7c
test ebx, ebx
je 0x429a50
mov eax, dword [esp + 0x10]
test eax, eax
je 0x429cc8
mov eax, dword [ecx + 0x70]
mov esi, dword [esp + 0x14]
mov edi, dword [eax + 0x49c]
mov eax, dword [ecx + 0x58]
add eax, 0x10
mov dword [esp + 0x3c], eax
test esi, esi
je 0x429cc0
test eax, eax
je 0x429cc0
mov eax, dword [edi + 8]
cmp dword [eax + 0x20], 0
jne 0x429cc0
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
push 0
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
push esi
push dword [edi + 0x30]
call fcn.004a6960
test eax, eax
jne 0x429c69
mov esi, dword [esp + 0x58]
test esi, esi
jne 0x429c21
mov eax, dword [edi + 0x30]
test byte [eax + 0x14], 0x20
jne 0x429c27
lea ecx, [esp + 0x58]
push ecx
push dword [esp + 0x34]
mov ecx, edi
push dword [esp + 0x1c]
push eax
call fcn.004a6c00
test eax, eax
jne 0x429caa
mov esi, dword [esp + 0x58]
mov ecx, edi
push esi
call fcn.004a6cd0
test byte [esi + 0x14], 0x20
je 0x429c49
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x14]
jmp 0x429c6a
push 0
lea eax, [esp + 0x38]
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x48]
push esi
call fcn.004a6960
test eax, eax
je 0x429c75
mov esi, dword [esp + 0x14]
inc ebx
cmp ebx, 3
jbe 0x429bc8
jmp 0x429caa
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x429c9a
lea eax, [esp + 0x34]
mov ecx, edi
push eax
push dword [esp + 0x34]
push dword [esp + 0x44]
push esi
call fcn.004a6c00
test eax, eax
jne 0x429caa
mov eax, dword [esp + 0x34]
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x14]
push eax
call fcn.004a6e20
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x14]
push eax
call ebx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x429cce
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 4
jb 0x42a115
mov eax, dword [eax]
test eax, eax
je 0x429ce8
cmp eax, 5
jne 0x42a115
test edi, edi
je 0x429d79
mov esi, dword [esp + 0x18]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x80]
push eax
push ebx
mov ecx, esi
call fcn.0042ceb0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x429d75
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xb4]
test esi, esi
jne 0x429d4b
test al, al
jns 0x429d3a
or eax, 0x100
mov edi, dword [esp + 0x18]
and eax, 0xfffffd79
or eax, 1
jmp 0x429e54
cmp esi, 2
jne 0x429d67
test al, al
jns 0x429d59
or eax, 0x100
mov edi, dword [esp + 0x18]
and eax, 0xfffffd78
jmp 0x429e54
mov edi, dword [esp + 0x18]
and eax, 0xfffffd79
jmp 0x429e54
mov edi, dword [esp + 0x14]
movups xmm0, xmmword [edi]
mov dword [esp + 0x90], 1
mov dword [esp + 0xc8], 0
movups xmmword [esp + 0x94], xmm0
mov dword [esp + 0xb4], 0
movups xmm0, xmmword [edi + 0x10]
mov edi, dword [esp + 0x18]
mov dword [esp + 0xb8], 0
movups xmmword [esp + 0xa4], xmm0
mov dword [esp + 0xbc], 0
mov eax, dword [edi + 0x70]
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xd0], 0
mov esi, dword [eax + 0x4c8]
lea eax, [esp + 0xcc]
push eax
mov ecx, esi
mov dword [esp + 0xd8], 0
call fcn.0047ac20
test eax, eax
je 0x429e22
lea eax, [esp + 0xcc]
mov ecx, esi
push eax
call fcn.0047acd0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x90]
mov ebx, dword [esp + 0x14]
movzx ecx, byte [eax]
mov eax, dword [esp + 0xc0]
inc ecx
and eax, 0xffff00ff
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x50]
or ecx, eax
mov dword [esp + 0x74], ecx
or ecx, 8
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x10]
cmp dword [ecx], 0
jne 0x42a0d7
mov eax, dword [ecx + 4]
add eax, 0x14
mov dword [esp + 0x2c], 0x568
lea eax, [ecx + eax*2]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x58]
mov dword [esp + 0x20], eax
mov edi, dword [eax + 8]
add eax, 0x10
test ebx, ebx
jne 0x429ea3
test eax, eax
jne 0x429fb8
mov eax, dword [edi + 8]
cmp dword [eax + 0x20], 0
jne 0x429fb8
lea ebx, [edi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
nop dword [eax]
mov eax, dword [esp + 0x20]
add eax, 0x10
je 0x429f42
push 0
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
push dword [edi + 0x30]
call fcn.004a6960
test eax, eax
jne 0x429fa4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x429fae
test byte [eax + 0x14], 0x20
jne 0x429f74
push 0
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x2c]
add ecx, 0x10
push ecx
push eax
mov ecx, edi
call fcn.004a6960
test eax, eax
jne 0x429fa4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x429fae
push 0
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.004a71a0
jmp 0x429fa0
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x30]
test ecx, ecx
je 0x429f6e
push 0
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x48]
push edx
push ecx
push eax
mov ecx, edi
call fcn.004a6960
test eax, eax
jne 0x429fa4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x429fae
test byte [eax + 0x14], 0x20
je 0x429f8f
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x429fa5
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.004a7000
test eax, eax
je 0x429fe1
inc esi
cmp esi, 4
jbe 0x429ec0
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov esi, 1
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x98], esi
mov ecx, dword [ebx + 0x74]
mov ecx, dword [ecx + 0xbc]
call fcn.0042b720
jmp 0x42a0db
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebx
push dword [esp + 0x30]
push esi
call fcn.004ace30
test eax, eax
jne 0x429fb8
cmp dword [esi], eax
jne 0x429fb8
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*2 + 0x10]
lea esi, [esi + eax*2]
mov eax, dword [esi + 0xc]
add esi, 0x28
push 0
push 0x10
push ecx
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ecx
call fcn.004f3670
mov edi, eax
mov dword [esp + 0x2c], 0xc
mov ecx, 0x10
lea eax, [esp + 0x2c]
sub ecx, edi
neg edi
push eax
sbb edi, edi
lea eax, [esp + 0xdc]
and edi, ecx
mov ecx, dword [esp + 0x24]
push eax
lea eax, [ecx + 0x30]
mov ecx, dword [ecx + 8]
push eax
push esi
call fcn.004a73f0
test eax, eax
jne 0x429fb8
cmp dword [esp + 0x2c], 0xc
jne 0x429fb8
add edi, dword [esp + 0x3c]
adc eax, dword [esp + 0x10]
cmp dword [esp + 0xdc], edi
jne 0x429fb8
cmp dword [esp + 0xe0], eax
jne 0x429fb8
mov eax, dword [esp + 0x74]
not al
movzx esi, al
mov eax, dword [esp + 0x18]
and esi, 1
push 0
add esi, esi
push ebx
mov eax, dword [eax + 0x70]
mov dword [esp + 0x98], esi
mov ecx, dword [eax + 0x4d8]
call fcn.00422b60
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x42a0db
mov esi, 1
mov dword [esp + 0x90], esi
jmp 0x42a0db
mov ebx, dword [esp + 0x18]
cmp esi, 3
jge 0x429a38
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.00429810
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, eax
call esi
test ebx, ebx
jne 0x429a0a
jmp 0x429a50
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x70]
mov esi, dword [eax + 0x470]
test edi, edi
je 0x42a15e
lea eax, [esi + 8]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
lea eax, [esp + 0x64]
push eax
push 0x5aa01092
call fcn.00403ec0
cmp dword [esp + 0x5c], 0
jne 0x42a1cb
mov eax, dword [esi]
push 2
call dword [eax + 4]
lea eax, [esi + 8]
push eax
call ebx
xor esi, esi
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x78]
or eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push ecx
mov eax, dword [eax + 0x70]
mov esi, dword [eax + 0x470]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test edi, edi
je 0x42a1bb
lea ecx, [esi + 8]
call fcn.004058a0
lea eax, [esp + 0x44]
mov ecx, esi
push eax
lea eax, [esp + 0x4c]
push eax
push 0x5aa01092
call fcn.00403ec0
cmp dword [esp + 0x44], 0
jne 0x42a203
mov eax, dword [esi]
push 2
call dword [eax + 4]
lea ecx, [esi + 8]
call fcn.00405900
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 1
jmp 0x429a50
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x64]
push eax
push 0x20
push edi
push 0x5aa01092
call fcn.00404070
mov eax, dword [esp + 0x64]
test eax, eax
je 0x42a158
mov esi, dword [eax + 0x60]
mov eax, dword [esp + 0x28]
push eax
call ebx
and esi, 0xfffefffe
jmp 0x42a160
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x20
push edi
push 0x5aa01092
call fcn.00404070
mov ebx, dword [esp + 0x68]
test ebx, ebx
jne 0x42a2b0
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x42a241
cmp dword [ebx + 0xc], eax
jb 0x42a241
mov eax, dword [esi]
mov ecx, esi
push 3
jmp 0x42a1b0
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 0x1c]
push esi
call eax
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x74], xmm0
movq qword [eax + 0x84], xmm0
mov eax, dword [esp + 0x2c]
add eax, 0x74
push eax
mov eax, dword [ebx + 0x20]
call eax
add esp, 0xc
push dword [esp + 0x24]
push dword [esp + 0x4c]
push 0x20
push edi
push ecx
push ebx
mov ecx, esi
call fcn.00404180
mov ecx, dword [esp + 0x24]
push dword [esp + 0x20]
push dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x42a2a8
push dword [esp + 0x24]
mov ecx, esi
call fcn.00404240
jmp 0x42a1b3
mov ebx, dword [esp + 0x24]
xor ecx, ecx
jmp 0x42a2b9
mov dword [esp + 0x24], ebx
mov ecx, 1
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x42a2d3
mov dword [ebx + 0x60], eax
lea edi, [esi + 8]
test ecx, ecx
je 0x42a2ee
mov ecx, edi
call fcn.00405900
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x429a50
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call dword [eax + 8]
push 0
push dword [esp + 0x50]
mov ecx, esi
push ebx
call fcn.00403da0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x42a31d
dec eax
mov dword [edi + 0x18], eax
test eax, eax
jne 0x42a324
mov dword [edi + 0x1c], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
xor ebx, ebx
jmp 0x429a50
cmp edi, 2
jne 0x429a0a
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42a349
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, dword [edx + 0x14]
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x10]
mov eax, edx
sub eax, ecx
cmp eax, 8
jb 0x429a0a
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx + eax]
add eax, 4
mov dword [edi + 0x10], eax
test ebx, ebx
je 0x42a394
lea edi, [eax + ecx]
add eax, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov dword [ebx + 0x10], eax
xor ebx, ebx
sub edx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
cmp edx, 8
jb 0x42a6ab
mov edx, dword [esp + 0x1c]
add eax, 4
mov edi, dword [esp + 0x1c]
mov dword [edx + 0x10], eax
mov edx, dword [eax + ecx]
add eax, 4
mov dword [edi + 0x10], eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], edx
test edx, edx
je 0x42a54b
lea ebx, [eax + ecx]
mov ecx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x10], ebx
mov dword [ecx + 0x10], eax
test ebx, ebx
je 0x42a54b
mov eax, dword [esp + 0x18]
push edi
push edx
push ebx
mov ecx, dword [eax + 0x58]
call fcn.004ac340
mov ebx, eax
test ebx, ebx
jne 0x42a345
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x70]
mov esi, dword [eax + 0x49c]
mov eax, dword [ecx + 0x58]
add eax, 0x10
mov dword [esp + 0x48], eax
test edi, edi
je 0x42a541
test eax, eax
je 0x42a541
mov eax, dword [esi + 8]
cmp dword [eax + 0x20], ebx
jne 0x42a541
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
push 0
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
lea eax, [esp + 0x3c]
push eax
push edi
push dword [esi + 0x30]
call fcn.004a6960
test eax, eax
jne 0x42a4dd
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x42a495
mov eax, dword [esi + 0x30]
test byte [eax + 0x14], 0x20
jne 0x42a49b
lea ecx, [esp + 0x38]
push ecx
push dword [esp + 0x38]
mov ecx, esi
push dword [esp + 0x1c]
push eax
call fcn.004a6c00
test eax, eax
jne 0x42a4e7
mov edi, dword [esp + 0x38]
mov ecx, esi
push edi
call fcn.004a6cd0
test byte [edi + 0x14], 0x20
je 0x42a4bd
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x14]
jmp 0x42a4de
push 0
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x54]
push edi
call fcn.004a6960
test eax, eax
je 0x42a4f9
mov edi, dword [esp + 0x14]
inc ebx
cmp ebx, 3
jbe 0x42a440
mov ebx, dword [esp + 0x10]
lea eax, [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
jmp 0x42a54b
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x42a51e
lea eax, [esp + 0x30]
mov ecx, esi
push eax
push dword [esp + 0x38]
push dword [esp + 0x50]
push edi
call fcn.004a6c00
test eax, eax
jne 0x42a4e7
mov eax, dword [esp + 0x30]
push dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ecx, esi
push ebx
push eax
call fcn.004a6e20
test eax, eax
jne 0x42a4eb
lea eax, [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
jmp 0x42a54b
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x20], 4
jb 0x42a6ab
mov eax, dword [ebx]
test eax, eax
je 0x42a565
cmp eax, 5
jne 0x42a6ab
mov edi, dword [esp + 0x18]
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x14]
mov ecx, edi
push 0
push ebx
call fcn.0042a970
lea eax, [esp + 0x80]
mov ecx, edi
push eax
push ebx
call fcn.0042ceb0
test eax, eax
jne 0x42a5a7
mov ecx, dword [esp + 0xb4]
or ecx, 0x200
jmp 0x42a677
movups xmm0, xmmword [ebx]
mov eax, dword [edi + 0x70]
mov dword [esp + 0x90], 1
movups xmmword [esp + 0x94], xmm0
mov dword [esp + 0xb4], 0x200
mov edi, dword [eax + 0x4c8]
lea eax, [esp + 0xcc]
movups xmm0, xmmword [ebx + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0xbc], 0
movups xmmword [esp + 0xa8], xmm0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
call fcn.0047ac20
test eax, eax
je 0x42a64c
lea eax, [esp + 0xcc]
mov ecx, edi
push eax
call fcn.0047acd0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc0]
mov edi, dword [esp + 0x18]
and eax, 0xffff00ff
movzx ecx, byte [ebx]
inc ecx
shl ecx, 8
or ecx, eax
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x50]
or eax, 8
or ecx, eax
lea eax, [esp + 0x80]
mov dword [esp + 0xb4], ecx
mov ecx, edi
push eax
call fcn.00429810
mov ebx, eax
lea eax, [edi + 4]
push eax
call esi
test ebx, ebx
jne 0x429a0a
jmp 0x42a345
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
mov edi, dword [eax + 0x470]
test ebx, ebx
je 0x42a6f8
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
lea eax, [esp + 0x6c]
push eax
push 0x5aa01092
call fcn.00403ec0
cmp dword [esp + 0x4c], 0
jne 0x42a768
mov eax, dword [edi]
push 2
call dword [eax + 4]
lea eax, [edi + 8]
push eax
call esi
mov esi, 1
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x78]
or eax, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
push ecx
mov eax, dword [eax + 0x70]
mov esi, dword [eax + 0x470]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test ebx, ebx
je 0x42a758
lea ecx, [esi + 8]
call fcn.004058a0
lea eax, [esp + 0x44]
mov ecx, esi
push eax
lea eax, [esp + 0x44]
push eax
push 0x5aa01092
call fcn.00403ec0
cmp dword [esp + 0x44], 0
jne 0x42a7a6
mov eax, dword [esi]
push 2
call dword [eax + 4]
lea ecx, [esi + 8]
call fcn.00405900
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 1
jmp 0x42a345
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
push 0x20
push ebx
push 0x5aa01092
call fcn.00404070
mov eax, dword [esp + 0x64]
test eax, eax
je 0x42a6f2
mov esi, dword [eax + 0x60]
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and esi, 0xfffeffff
or esi, 1
jmp 0x42a6fd
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
push 0x20
push ebx
push 0x5aa01092
call fcn.00404070
mov edi, dword [esp + 0x60]
test edi, edi
jne 0x42a854
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42a7e4
cmp dword [edi + 0xc], eax
jb 0x42a7e4
mov eax, dword [esi]
mov ecx, esi
push 3
jmp 0x42a74d
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi + 0x1c]
push esi
call eax
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x74], xmm0
movq qword [eax + 0x84], xmm0
mov eax, dword [esp + 0x2c]
add eax, 0x74
push eax
mov eax, dword [edi + 0x20]
call eax
add esp, 0xc
push dword [esp + 0x24]
push dword [esp + 0x44]
push 0x20
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00404180
mov ecx, dword [esp + 0x24]
push dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x42a84c
push dword [esp + 0x24]
mov ecx, esi
call fcn.00404240
jmp 0x42a750
mov edi, dword [esp + 0x24]
xor ecx, ecx
jmp 0x42a861
mov ebx, dword [esp + 0x10]
mov ecx, 1
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x20]
mov dword [edi + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x50], ebx
cmp eax, 0xffffffff
je 0x42a877
mov dword [edi + 0x60], eax
lea ebx, [esi + 8]
test ecx, ecx
je 0x42a892
mov ecx, ebx
call fcn.00405900
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x42a345
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 8]
push 0
push dword [esp + 0x2c]
mov ecx, esi
push edi
call fcn.00403da0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x42a8c1
dec eax
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x42a8c8
mov dword [ebx + 0x1c], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
xor ebx, ebx
jmp 0x42a345