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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x50], edi
mov ecx, dword [edi + 0x1c]
mov esi, dword [edi]
call fcn.0049aa70
test eax, eax
jne 0x4966c5
nop dword [eax + eax]
cmp dword [esi + 0x24], 0
jne 0x4966c3
mov ebx, dword [esi + 0x34]
mov eax, ebx
mov edx, dword [esi + 0x30]
mov ecx, edx
push ebx
push edx
push 0
add ecx, 1
mov dword [esp + 0x68], edx
push 0
push 0
adc eax, 0
mov dword [esi + 0x30], ecx
push 0
lea edx, [esp + 0x70]
mov dword [esp + 0xa0], ebx
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.00495660
mov ebx, dword [esi + 0x70]
xor ecx, ecx
mov edx, dword [esp + 0x58]
mov ebp, eax
mov dword [esp + 0x28], ebp
xorps xmm0, xmm0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x40], 0
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
test ebp, ebp
jne 0x495d82
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
test edx, edx
jne 0x495d82
mov ebp, dword [esi + 0x64]
xor ebx, ebx
mov edi, dword [edi + 8]
sub ebp, dword [esi + 0x60]
movlpd qword [esp + 0x90], xmm0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4959a8
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi]
add edx, 0x10
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x495c6c
mov dword [edi], 0
test ebx, ebx
je 0x4959a1
mov dword [ebx], edi
jmp 0x4959a8
mov eax, dword [esp + 0x50]
mov dword [eax + 8], edi
lea ecx, [edi + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], ecx
test ebp, ebp
je 0x4959df
mov eax, dword [esi + 0x60]
mov edx, ebp
add eax, 0x10
mov dword [esp + 0x1c], ebp
add eax, dword [esi + 0x5c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x34], eax
jmp 0x495ac0
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push eax
call fcn.004857f0
mov edx, dword [esp + 0x74]
mov ecx, eax
add dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
adc dword [esp + 0x20], 0
test ebx, ebx
mov eax, dword [esp + 0x40]
cmove eax, edx
add dword [esi + 0x68], edx
mov dword [esp + 0x40], eax
adc dword [esi + 0x6c], 0
xor ebx, ebx
cmp edx, dword [esi]
setne bl
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x3c]
je 0x495a33
mov dword [esi + 0x70], 1
test ecx, ecx
je 0x495a4f
mov dword [esi + 0x48], ecx
xor ecx, ecx
mov dword [esi + 0x70], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x80]
mov dword [esp + 0x6c], eax
jne 0x495a6d
cmp ecx, 1
jb 0x495ac0
push dword [esp + 0x88]
lea edx, [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x60]
push 0
push 0
push 0
push 0
call fcn.00495660
mov edx, dword [esp + 0x58]
mov ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
test ecx, ecx
jne 0x495d0a
test edx, edx
jne 0x495d0a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0xc8], edx
test ebx, ebx
mov dword [esp + 0xd4], 1
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0xc0]
sete al
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xd0], eax
mov eax, dword [esi + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax]
call eax
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x84], 1
mov dword [esp + 0x38], ecx
cmp eax, 1
je 0x495ccf
mov ebx, dword [esp + 0xc8]
test ebp, ebp
je 0x495b5b
push ebx
push dword [esp + 0x38]
lea eax, [edi + 0x10]
push eax
call fcn.004a40c0
mov eax, dword [esp + 0xdc]
add esp, 0xc
add dword [esi + 0x60], ebx
test eax, eax
jne 0x495bc3
cmp dword [esp + 0x14], eax
jne 0x495bd6
cmp ebx, dword [esp + 0x74]
jne 0x495b88
mov ebx, edi
mov edi, dword [edi]
mov dword [esp + 0x3c], ebx
test ebp, ebp
je 0x495977
xor ebp, ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
jmp 0x495977
xor ecx, ecx
mov dword [esp + 0x30], 0
mov ebp, 0xb
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov ebx, 1
mov dword [esp + 0x34], 0
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x44], edi
jmp 0x495ee1
mov ecx, dword [esp + 0x14]
cmp eax, 3
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x54], 1
cmp ebx, ecx
je 0x495cf8
cmp eax, 3
jne 0x495c2c
mov edi, dword [esp + 0x34]
xor eax, eax
mov edx, dword [esp + 0x18]
add edi, ebx
sub ecx, ebx
mov dword [esp + 0x30], edi
test ebp, ebp
setne al
sub dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], eax
sbb dword [esp + 0x20], 0
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x3c], 0
cmove eax, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
jmp 0x495d1c
test ebp, ebp
je 0x495c3e
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
jmp 0x495caf
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x495c65
mov eax, dword [esi + 0x14]
mov ecx, eax
mov edx, dword [esi]
add edx, 0x10
mov eax, dword [eax]
call eax
test eax, eax
je 0x495c6c
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0xc8]
mov dword [esi + 0x5c], eax
lea edx, [eax + 0x10]
test edx, edx
jne 0x495c82
mov edx, dword [esp + 0x18]
mov ebx, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x78], ebx
jmp 0x495d0e
mov eax, dword [esp + 0x34]
sub ecx, ebx
sub dword [esp + 0x1c], ecx
push ecx
sbb dword [esp + 0x24], 0
add eax, ebx
push eax
push edx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], 0
call fcn.004a40c0
mov ebx, dword [esp + 0xd4]
add esp, 0xc
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
cmove eax, ebx
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
jmp 0x495d16
mov dword [esp + 0x14], 1
mov dword [esp + 0x8c], 1
test ebp, ebp
je 0x495cf8
push dword [esp + 0x74]
mov eax, dword [esp + 0x4c]
push ebx
push eax
call fcn.004a40c0
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], 0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
test ebp, ebp
jne 0x495d92
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], ebp
je 0x495d61
mov eax, dword [esp + 0x88]
cmp eax, dword [esi + 0x94]
jb 0x495d61
ja 0x495d5a
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x90]
jbe 0x495d61
mov eax, 1
jmp 0x495d63
xor eax, eax
mov ebp, dword [esi + 0x9c]
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
jmp 0x495d92
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x44], edi
test ebp, ebp
jne 0x495b9f
cmp dword [esp + 0x54], edi
je 0x495e31
test edx, edx
jne 0x495b9f
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov dword [esp + 0x44], edi
test edi, edi
je 0x495e39
xorps xmm0, xmm0
mov dword [esp + 0x54], ebp
mov dword [esp + 0x14], 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x7c], ebp
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa8], xmm0
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], eax
jmp 0x49636b
test edx, edx
jne 0x495b9f
mov dword [esp + 0x34], 0
mov dword [esp + 0x7c], 0
test ebx, ebx
jne 0x495edd
mov eax, dword [esi + 0x58]
mov edx, eax
cmp eax, dword [esi + 0x54]
jae 0x4961ba
cmp dword [esp + 0x38], ebx
je 0x4961ba
lea eax, [eax + eax*4]
lea eax, [eax + 0x19]
lea edi, [esi + eax*8]
lea ecx, [edi + 0x20]
call fcn.0049a900
test eax, eax
jne 0x495ea1
lea ecx, [edi + 0x1c]
call fcn.0049a900
test eax, eax
jne 0x495ea1
cmp dword [edi + 0x18], eax
lea ecx, [edi + 0x18]
jne 0x495eaf
push edi
mov edx, fcn.00496800
call fcn.0049ac10
test eax, eax
je 0x495eaf
jle 0x495eab
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x495ebb
mov edx, dword [esi + 0x58]
inc edx
mov dword [esi + 0x58], edx
jmp 0x4961ba
mov edx, dword [esi + 0x58]
cmp edx, 1
jne 0x4961b7
mov ebx, edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x7c], eax
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, edi
mov edi, dword [esp + 0x40]
xorps xmm0, xmm0
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0xb8], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0x48], ebx
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa8], xmm0
test ebp, ebp
jne 0x495e06
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x78], edi
mov edi, eax
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], edi
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x68], xmm0
test ecx, ecx
je 0x495e06
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x40], edi
mov edi, eax
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], edi
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x68], xmm0
test eax, eax
jne 0x495e06
mov ebp, dword [esp + 0x48]
lea eax, [edi + 1]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x64]
mov edi, dword [edi + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x8c], ecx
movlpd qword [esp + 0x90], xmm0
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x38]
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x496187
mov edi, dword [esp + 0x1c]
mov eax, ebx
mov ebx, dword [esi]
sub edi, edx
mov dword [esp + 0x48], 0
sbb eax, ecx
cmp dword [esp + 0x48], eax
jb 0x496189
ja 0x496187
cmp ebx, edi
jbe 0x496189
mov ebx, edi
add edx, ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x98], edx
adc ecx, 0
mov dword [esp + 0x9c], ecx
cmp edx, dword [esp + 0x1c]
jne 0x4961ea
cmp ecx, dword [esp + 0x20]
jne 0x4961ea
mov eax, 1
jmp 0x4961ec
mov dword [esi + 0x54], edx
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
inc ecx
cmp ecx, edx
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x34], eax
call fcn.0049aa00
test eax, eax
jne 0x4966c5
jmp 0x495ed9
xor eax, eax
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [esi + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
add eax, 0x10
push ebx
push eax
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 4]
mov eax, dword [edi + 8]
call eax
mov edi, eax
mov dword [esp + 0x44], edi
test edi, edi
jne 0x49630a
cmp dword [esp + 0x48], eax
jne 0x49636b
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
cmp edx, dword [esp + 0x1c]
jne 0x496253
cmp ecx, dword [esp + 0x20]
je 0x49636b
mov edi, dword [esp + 0xa8]
mov eax, edx
sub eax, dword [esp + 0x60]
mov ebp, ecx
mov ebx, dword [esp + 0xac]
sbb ebp, dword [esp + 0x64]
sub edi, dword [esp + 0x38]
sbb ebx, dword [esp + 0x3c]
test ebp, ebp
ja 0x496289
jb 0x496280
cmp eax, 1
jae 0x496289
test ebx, ebx
jne 0x496289
cmp edi, 1
jb 0x4962e7
push dword [esp + 0x88]
lea edx, [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x60]
push ebx
push edi
push ebp
push eax
call fcn.00495660
mov ebx, dword [esp + 0x58]
mov ebp, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebx
test ebp, ebp
jne 0x496304
test ebx, ebx
jne 0x496304
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], eax
jmp 0x4962eb
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
xor eax, eax
mov ebx, dword [esp + 0x20]
mov edi, dword [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x40]
jmp 0x496163
mov edi, dword [esp + 0x44]
jmp 0x49636f
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x49633f
mov eax, dword [esp + 0x88]
cmp eax, dword [esi + 0x94]
ja 0x496360
mov eax, dword [esp + 0x5c]
jb 0x496343
cmp eax, dword [esi + 0x90]
jae 0x496360
jmp 0x496343
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x88]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x20]
call fcn.0049aa70
test eax, eax
jne 0x4966c5
cmp dword [esi + 0x24], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], 1
mov dword [esp + 0x28], eax
jne 0x4966c3
cmp dword [esi + 0x50], 0
je 0x4963b9
mov ebx, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], ebx
jmp 0x49642a
mov ecx, dword [esp + 0x78]
test edi, edi
je 0x4963d6
cmp edi, 2
mov dword [esi + 0x50], 1
mov eax, 1
mov dword [esi + 0x4c], edi
cmove ecx, eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4963f0
mov dword [esi + 0x50], 1
mov dword [esi + 0x40], eax
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x49640a
mov dword [esi + 0x50], 1
mov dword [esi + 0x38], 1
mov dword [esp + 0x28], 0
cmp dword [esp + 0x8c], 0
je 0x49642a
mov dword [esi + 0x50], 1
mov dword [esi + 0x3c], 1
mov dword [esp + 0x28], 0
cmp dword [esp + 0x54], 0
je 0x496514
test ebx, ebx
je 0x49644e
xorps xmm0, xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa8], xmm0
mov ebp, dword [esp + 0x98]
sub ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x9c]
sbb edi, dword [esp + 0x64]
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0x38]
mov ebx, dword [esp + 0xac]
sbb ebx, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add ebp, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
mov ecx, dword [esp + 0x80]
adc eax, edi
add ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
adc edx, ebx
mov dword [esp + 0xa4], eax
cmp dword [esi + 0x9c], 0
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], edx
jne 0x496501
mov eax, dword [esi + 0x98]
test eax, eax
je 0x496501
push edx
push ecx
push dword [esp + 0xac]
mov ecx, eax
mov eax, dword [eax]
push ebp
call eax
test eax, eax
je 0x496501
mov dword [esi + 0x9c], 0xa
mov ebp, dword [esi + 0x9c]
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
sete cl
cmp dword [esp + 0x84], 0
mov dword [esp + 0xb4], ecx
je 0x496601
test ebp, ebp
jne 0x496549
cmp dword [esp + 0x28], ebp
je 0x496549
cmp dword [esp + 0x18], ebp
jne 0x496549
lea ecx, [ebp + 1]
jmp 0x49654b
xor ecx, ecx
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x48]
mov edi, dword [esp + 0x50]
push edx
lea edx, [esp + 0xb8]
mov eax, dword [eax + 0xc]
push edx
push dword [esp + 0x34]
mov edx, dword [edi + 4]
push dword [esp + 0x30]
push dword [esp + 0x40]
push ecx
mov ecx, dword [esi + 0x1c]
call eax
mov ebp, eax
test ebp, ebp
je 0x49658e
mov dword [esp + 0x4c], 1
mov dword [esi + 0x50], 1
jmp 0x49659d
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x496605
test ebx, ebx
jne 0x496605
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x4965d2
mov eax, dword [esp + 0x88]
cmp eax, dword [esi + 0x94]
ja 0x4965f3
mov eax, dword [esp + 0x5c]
jb 0x4965d6
cmp eax, dword [esi + 0x90]
jae 0x4965f3
jmp 0x4965d6
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x88]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xb4]
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x48], 0
je 0x49666d
cmp dword [esp + 0x54], 0
je 0x496636
test ebp, ebp
jne 0x496636
cmp dword [esi + 0x50], ebp
jne 0x496636
cmp dword [esp + 0x44], ebp
jne 0x496636
cmp dword [esp + 0x18], ebp
jne 0x496636
cmp dword [esi + 0x84], ebp
jne 0x496648
cmp dword [esp + 0x4c], ebp
je 0x49666d
cmp dword [esi + 0x84], 0
jne 0x496648
mov eax, dword [edi + 4]
mov dword [esi + 0x80], eax
mov ebp, dword [esp + 0x1c]
mov eax, ebp
mov edx, dword [esp + 0x20]
or eax, edx
jne 0x49665a
test ebx, ebx
jne 0x49667a
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], edx
inc dword [esi + 0x84]
test ebx, ebx
jne 0x49667a
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + 0x20]
jmp 0x4966a2
test ecx, ecx
je 0x49668f
lea ecx, [esi + 0xe8]
call fcn.0049aa00
test eax, eax
jne 0x4966c5
jmp 0x49669c
cmp dword [edi + 4], 0
je 0x4966c3
mov dword [esi + 0x24], 1
lea ecx, [esi + 0xe4]
call fcn.0049aa00
test eax, eax
jne 0x4966c5
mov ecx, dword [edi + 0x1c]
call fcn.0049aa70
test eax, eax
je 0x495870
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret