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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [eax + 0x12c]
xor ecx, ecx
cmp esi, ecx
push edi
mov edi, dword [esp + 0x80]
je 0x53c721
mov ebx, dword [eax + 0x28c]
cmp ebx, ecx
je 0x53c721
cmp edi, ecx
je 0x53c721
cmp dword [esp + 0x84], ecx
je 0x53c721
add ebx, 0x94
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call fcn.005299f0
push edi
push 0x5ce664
lea edi, [esp + 0x30]
call fcn.0052f490
add esp, 8
test eax, eax
je 0x53aeb8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, ebx
xor ebp, ebp
call fcn.00548180
test eax, eax
jle 0x53b43a
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53aee6
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x53aeeb
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x80]
lea esi, [ebp*4]
mov eax, dword [esi + ecx]
test eax, eax
mov dword [esp + 0x1c], edx
je 0x53af17
cmp dword [eax], 1
jne 0x53af17
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x53af27
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x53af2c
call fcn.00578ff3
mov edi, dword [ebx + 4]
mov ecx, dword [esp + 0x60]
add edi, esi
mov esi, dword [ecx + 0x12c]
call fcn.00529db0
mov edi, dword [edi]
test edi, edi
je 0x53b428
cmp eax, 1
je 0x53af75
test eax, eax
jne 0x53b428
mov edi, dword [edi]
test edi, edi
je 0x53af75
cmp edi, 3
je 0x53af75
cmp edi, 4
je 0x53af75
cmp edi, 5
je 0x53af75
cmp edi, 6
jne 0x53b428
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x28c]
xor eax, eax
cmp dword [ecx + 0xa8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov edi, ebp
mov esi, ebx
je 0x53b02f
call fcn.0041dda0
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x12c]
mov edi, eax
call fcn.005299f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
push ecx
mov ecx, dword [edx + 0x14]
push ecx
lea edi, [esp + 0x30]
call fcn.0052f490
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
add eax, ecx
add esp, 8
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x20], eax
call fcn.0041dda0
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x18
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
add dword [ecx], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
jmp 0x53b060
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
call fcn.0041dda0
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x18
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0x34], 2
jne 0x53b1ca
mov edi, ebp
mov esi, ebx
call fcn.0041dda0
mov eax, dword [eax]
add eax, 0x3c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x12c]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + 0x3c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x53b1ca
call fcn.0041dda0
mov eax, dword [eax]
cmp dword [eax + 0x10], 0
je 0x53b1ca
call fcn.0041dda0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
mov edi, dword [esp + 0x18]
call fcn.0054a7e0
mov esi, eax
test esi, esi
je 0x53b1ca
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push edi
mov edi, dword [esp + 0x74]
mov ecx, dword [edi]
push eax
add ecx, 5
push ecx
push eax
lea esi, [esp + 0x58]
call fcn.0052ea50
add esp, 0x10
test eax, eax
je 0x53b1ca
mov edx, dword [esp + 0x68]
mov ecx, dword [edx]
mov edx, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [ecx + 3]
mov dword [esp + 0x38], eax
mov eax, dword [edx]
mov edx, dword [edi]
lea esi, [edx + eax*2]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x54]
add eax, esi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
sar edi, 1
lea ecx, [eax + ecx + 3]
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x40], ecx
add eax, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], eax
je 0x53b1ca
sub eax, edi
je 0x53b1ca
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
add edx, 3
mov dword [eax], edx
mov edx, dword [esp + 0x10]
lea eax, [edx + ecx + 6]
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x10], eax
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add eax, 0x3c
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53b1dd
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x53b1e2
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp*4]
cmp dword [ecx], 3
mov edi, ebp
mov esi, ebx
jne 0x53b212
call fcn.0041dda0
mov edx, dword [esp + 0x70]
mov ecx, dword [edx]
mov edx, dword [eax]
mov eax, dword [esp + 0x60]
mov edx, dword [edx + 4]
push ecx
push eax
lea edi, [esp + 0x30]
call fcn.0053ac70
jmp 0x53b23f
call fcn.0041dda0
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + 0x12c]
mov edi, eax
call fcn.005299f0
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi]
push edx
mov edx, dword [ecx + 4]
push edx
lea edi, [esp + 0x30]
call fcn.0052f490
add esp, 8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53b252
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x53b257
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
mov edi, dword [esp + 0x68]
mov ecx, dword [edi]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
mov edx, dword [edx]
add dword [esp + 0x10], esi
add eax, 0x28
mov dword [eax], ecx
add ecx, esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
add edx, ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
test eax, eax
je 0x53b29a
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x53b29f
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
cmp dword [eax], 6
jne 0x53b3ad
mov edi, ebp
mov esi, ebx
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x24], edx
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x14], ecx
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x1c], edx
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add eax, 0x3c
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], edx
xor eax, eax
cmp dword [ecx + 0x30c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
je 0x53b38e
mov edx, ecx
mov ecx, dword [edx + 0x30c]
mov eax, dword [ecx + 0xc]
test eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jle 0x53b392
test ecx, ecx
jle 0x53b392
call fcn.0041dda0
mov eax, dword [eax]
add dword [eax + 0x3c], 1
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
add eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x44], edx
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
add eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x48], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
lea edx, [ecx + eax + 1]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x68]
add dword [eax], ecx
mov dword [esp + 0x10], edx
mov edi, eax
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
cmp eax, edx
jg 0x53b3bd
mov eax, edx
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53b3d2
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x53b3d7
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x38], 1
mov edx, dword [ecx + 0x12c]
mov eax, dword [edx + 0x50]
cmp dword [eax + 0xb0], 0
jne 0x53b40b
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
add esi, 0xa
add dword [edi], esi
mov dword [edx], ecx
jmp 0x53b428
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jle 0x53b41f
mov eax, ecx
lea ecx, [eax + 5]
mov eax, dword [esp + 0x6c]
add dword [eax], ecx
mov eax, ebx
add ebp, 1
call fcn.00548180
cmp ebp, eax
jl 0x53aed3
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov esi, dword [ebp + 0x12c]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
call fcn.00529db0
test eax, eax
jne 0x53b840
xor edi, edi
mov eax, dword [ebp + 0x28c]
mov ecx, dword [eax + 0x98]
add eax, 0x94
test ecx, ecx
jne 0x53b489
xor eax, eax
jmp 0x53b491
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x53b840
mov ebp, dword [ebp + 0x12c]
mov eax, dword [ebp + 0x50]
test eax, eax
mov esi, 2
je 0x53b4b9
mov eax, dword [eax + 8]
test eax, eax
je 0x53b4b9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x53b4d4
mov esi, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x53b4d4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53b4e7
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b4ec
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x53b834
cmp esi, 1
je 0x53b525
test esi, esi
jne 0x53b834
mov ecx, dword [ecx]
test ecx, ecx
je 0x53b525
cmp ecx, 3
je 0x53b525
cmp ecx, 4
je 0x53b525
cmp ecx, 5
je 0x53b525
cmp ecx, 6
jne 0x53b834
cmp dword [esp + 0x68], 0
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x28c]
jne 0x53b668
cmp dword [ecx + 0xa8], 0
mov dword [esp + 0x68], 1
je 0x53b5a4
test eax, eax
je 0x53b55b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53b560
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x53b573
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x53b578
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [eax + 0x2c]
mov esi, ebx
jge 0x53b59b
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x70], ecx
jmp 0x53b5c6
call fcn.0041dda0
mov edx, dword [eax]
jmp 0x53b5bf
test eax, eax
je 0x53b5b4
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53b5b9
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x53b63a
test ecx, ecx
je 0x53b5ec
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b5f1
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x53b604
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x53b609
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [esi + edi*4]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + 0x24]
cmp eax, dword [ecx + 0x34]
mov esi, ebx
jle 0x53b80c
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x6c], edx
add edi, 1
jmp 0x53b470
test ecx, ecx
je 0x53b64a
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b64f
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x34]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
add edi, 1
jmp 0x53b470
cmp dword [ecx + 0xa8], 0
je 0x53b6c9
test eax, eax
je 0x53b681
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53b686
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x53b699
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x53b69e
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [eax + 0x2c]
mov esi, ebx
jge 0x53b6bd
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
jmp 0x53b6e7
call fcn.0041dda0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2c]
jmp 0x53b6e7
test eax, eax
je 0x53b6d9
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53b6de
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x2c]
cmp dword [esp + 0x70], eax
jl 0x53b749
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0xa8], 0
mov esi, ebx
je 0x53b73b
call fcn.0041dda0
mov ebp, dword [eax]
add ebp, 0x2c
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp]
jge 0x53b72b
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x70], eax
jmp 0x53b749
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x70], edx
jmp 0x53b749
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x28c]
cmp dword [eax + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x53b7b7
test ecx, ecx
je 0x53b76f
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b774
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x53b787
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x53b78c
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi + edi*4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [eax + 0x24]
cmp ecx, dword [edx + 0x34]
mov esi, ebx
jle 0x53b7ab
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
jmp 0x53b7d5
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
jmp 0x53b7d5
test ecx, ecx
je 0x53b7c7
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b7cc
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x34]
cmp dword [esp + 0x6c], eax
jg 0x53b834
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x28c]
cmp dword [ecx + 0xa8], 0
mov esi, ebx
je 0x53b826
call fcn.0041dda0
mov ebp, dword [eax]
add ebp, 0x34
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
cmp eax, dword [ebp]
jmp 0x53b61a
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x34]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
add edi, 1
jmp 0x53b470
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x6c], eax
mov ebp, dword [esp + 0x60]
add edi, 1
jmp 0x53b470
xor edi, edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x68], edi
mov eax, dword [ebp + 0x28c]
mov ecx, dword [eax + 0x98]
add eax, 0x94
test ecx, ecx
jne 0x53b86a
xor eax, eax
jmp 0x53b872
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x53c53c
mov ebp, dword [ebp + 0x12c]
mov eax, dword [ebp + 0x50]
test eax, eax
mov esi, 2
je 0x53b89a
mov eax, dword [eax + 8]
test eax, eax
je 0x53b89a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x53b8b5
mov esi, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x53b8b5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53b8c8
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b8cd
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
test eax, eax
lea ebp, [edi*4]
je 0x53c52a
cmp esi, 1
je 0x53b90d
test esi, esi
jne 0x53c52a
mov eax, dword [eax]
test eax, eax
je 0x53b90d
cmp eax, 3
je 0x53b90d
cmp eax, 4
je 0x53b90d
cmp eax, 5
je 0x53b90d
cmp eax, 6
jne 0x53c52a
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x28c]
cmp dword [eax + 0xa8], 0
mov edi, dword [esp + 0x68]
je 0x53b990
test ecx, ecx
je 0x53b934
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b939
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov esi, dword [eax + 0x24]
sub esi, dword [eax + 0x1c]
add eax, 0x18
test ecx, ecx
je 0x53b958
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b95d
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov edx, dword [eax + 0x34]
sub edx, dword [eax + 0x2c]
add eax, 0x28
cmp esi, edx
jle 0x53b990
test ecx, ecx
je 0x53b980
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b985
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
add ecx, 0x18
jmp 0x53b9ae
test ecx, ecx
je 0x53b9a0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53b9a5
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
add ecx, 0x28
mov esi, dword [ecx + 0xc]
sub esi, dword [ecx + 4]
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0xa8], 0
je 0x53ba25
test eax, eax
je 0x53b9d7
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53b9dc
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov edi, dword [eax + 0x24]
sub edi, dword [eax + 0x1c]
add eax, 0x18
test ecx, ecx
je 0x53b9fd
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53ba02
call fcn.00578ff3
mov eax, esi
sub eax, edi
add eax, 1
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
push 0
add ecx, 0x18
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x68]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53ba38
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53ba3d
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov edi, dword [eax + 0x34]
sub edi, dword [eax + 0x2c]
add eax, 0x28
test ecx, ecx
je 0x53ba5e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53ba63
call fcn.00578ff3
mov eax, esi
sub eax, edi
add eax, 1
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
push eax
mov eax, dword [edx + ebp]
push 0
add eax, 0x28
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + 0x28c]
mov eax, dword [esi + 0x98]
add esi, 0x94
test eax, eax
je 0x53baaa
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x68], ecx
jb 0x53baaf
call fcn.00578ff3
mov edx, dword [esi + 4]
mov eax, dword [edx + ebp]
cmp dword [eax], 6
jne 0x53bbde
mov edi, dword [esp + 0x60]
mov esi, dword [edi + 0x28c]
mov ecx, dword [esi + 0x98]
add esi, 0x94
test ecx, ecx
je 0x53bae6
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53baeb
call fcn.00578ff3
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebp]
mov ecx, dword [eax + 0x48]
mov esi, dword [edi + 0x28c]
sub ecx, dword [eax + 0x40]
add eax, 0x3c
mov eax, dword [esi + 0x98]
add esi, 0x94
test eax, eax
mov dword [esp + 0x84], ecx
je 0x53bb25
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x68], ecx
jb 0x53bb2a
call fcn.00578ff3
mov edi, dword [esi + 4]
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x28c]
mov ecx, dword [esi + 0x98]
add esi, 0x94
add edi, ebp
test ecx, ecx
je 0x53bb57
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53bb5c
call fcn.00578ff3
mov ecx, dword [esi + 4]
mov eax, dword [edi]
mov edx, dword [ecx + ebp]
mov eax, dword [eax + 0x2c]
mov ecx, dword [esp + 0x60]
mov dword [edx + 0x40], eax
mov esi, dword [ecx + 0x28c]
mov ecx, dword [esi + 0x98]
add esi, 0x94
test ecx, ecx
je 0x53bb92
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53bb97
call fcn.00578ff3
mov edi, dword [esi + 4]
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x28c]
mov ecx, dword [esi + 0x98]
add esi, 0x94
add edi, ebp
test ecx, ecx
je 0x53bbc4
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53bbc9
call fcn.00578ff3
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
mov edx, dword [esi + 4]
add ecx, dword [esp + 0x84]
mov eax, dword [edx + ebp]
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + 0x12c]
mov eax, dword [esi + 0x50]
test eax, eax
mov edi, 2
je 0x53bc02
mov eax, dword [eax + 8]
test eax, eax
je 0x53bc02
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x53bc1d
mov edi, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x53bc1d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x53bd69
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x28c]
cmp dword [eax + 0xa8], 0
mov edi, dword [esp + 0x68]
je 0x53bcc3
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53bc53
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bc58
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea edx, [ecx + ebp]
mov dword [esp + 0x84], edx
je 0x53bc75
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bc7a
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov esi, dword [eax + 0x24]
sub esi, dword [eax + 0x1c]
add eax, 0x18
test ecx, ecx
je 0x53bc99
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bc9e
call fcn.00578ff3
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [esp + 0x6c]
sub edx, dword [ecx + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
sub edx, esi
push edx
push 0
add ecx, 0x18
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53bcd6
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bcdb
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp]
cmp dword [edx], 3
jne 0x53be07
test ecx, ecx
je 0x53bcfa
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bcff
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea edi, [ecx + ebp]
je 0x53bd17
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53bd1c
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov esi, dword [eax + 0x34]
sub esi, dword [eax + 0x2c]
add eax, 0x28
test ecx, ecx
je 0x53bd3d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53bd42
call fcn.00578ff3
mov eax, dword [esp + 0x6c]
mov ecx, dword [edi]
sub eax, esi
add eax, dword [esp + 0x70]
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
sub eax, dword [ecx + 0x2c]
push eax
mov eax, dword [edx + ebp]
push 0
add eax, 0x28
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x68]
cmp dword [esp + 0x80], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x28c]
mov ecx, dword [ebx + 4]
jne 0x53bf4f
cmp dword [eax + 0xa8], 0
mov dword [esp + 0x80], 1
je 0x53beac
test ecx, ecx
je 0x53bdb0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bdb5
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + ebp]
je 0x53bdcb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bdd0
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebp]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x2c]
jge 0x53be8c
test ecx, ecx
je 0x53bdf4
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bdf9
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x1c]
jmp 0x53beca
test ecx, ecx
je 0x53be17
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53be1c
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea edx, [ecx + ebp]
mov dword [esp + 0x84], edx
je 0x53be39
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53be3e
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
mov esi, dword [eax + 0x34]
sub esi, dword [eax + 0x2c]
add eax, 0x28
test ecx, ecx
je 0x53be5d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53be62
call fcn.00578ff3
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [esp + 0x6c]
sub edx, dword [ecx + 0x2c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
sub edx, esi
push edx
push 0
add ecx, 0x28
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x53bd6d
test ecx, ecx
je 0x53be9c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bea1
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + ebp]
mov ecx, dword [edx + 0x2c]
jmp 0x53beca
test ecx, ecx
je 0x53bebc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bec1
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x2c]
mov edx, dword [esp + 0x64]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0xa8], 0
je 0x53c1ad
test eax, eax
je 0x53bef8
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53befd
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + ebp]
je 0x53bf13
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bf18
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + ebp]
mov edx, dword [edx + 0x24]
cmp edx, dword [eax + 0x34]
jle 0x53c18d
test ecx, ecx
je 0x53bf3c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bf41
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov eax, dword [ecx + 0x24]
jmp 0x53c1cb
cmp dword [eax + 0xa8], 0
je 0x53bfdc
test ecx, ecx
je 0x53bf6c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bf71
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + ebp]
je 0x53bf87
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bf8c
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebp]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x2c]
jge 0x53bfbc
test ecx, ecx
je 0x53bfac
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bfb1
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov edx, dword [ecx + 0x1c]
jmp 0x53bffa
test ecx, ecx
je 0x53bfcc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bfd1
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + ebp]
mov edx, dword [edx + 0x2c]
jmp 0x53bffa
test ecx, ecx
je 0x53bfec
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53bff1
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
cmp ecx, edx
jl 0x53c0be
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x28c]
cmp dword [ecx + 0xa8], 0
je 0x53c0a0
test eax, eax
je 0x53c030
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c035
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + ebp]
je 0x53c04b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c050
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebp]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x2c]
jge 0x53c080
test ecx, ecx
je 0x53c070
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c075
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x1c]
jmp 0x53c0be
test ecx, ecx
je 0x53c090
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c095
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + ebp]
mov ecx, dword [edx + 0x2c]
jmp 0x53c0be
test eax, eax
je 0x53c0b0
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c0b5
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x2c]
mov edx, dword [esp + 0x64]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0xa8], 0
je 0x53c15c
test eax, eax
je 0x53c0ec
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c0f1
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + ebp]
je 0x53c107
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c10c
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + ebp]
mov edx, dword [edx + 0x24]
cmp edx, dword [eax + 0x34]
jle 0x53c13c
test ecx, ecx
je 0x53c12c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c131
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x24]
jmp 0x53c17a
test ecx, ecx
je 0x53c14c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c151
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + ebp]
mov ecx, dword [edx + 0x34]
jmp 0x53c17a
test eax, eax
je 0x53c16c
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c171
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x34]
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 0xc]
cmp edx, ecx
jle 0x53bed1
mov eax, edx
jmp 0x53c1cb
test ecx, ecx
je 0x53c19d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c1a2
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp]
mov eax, dword [eax + 0x34]
jmp 0x53c1cb
test eax, eax
je 0x53c1bd
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c1c2
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp]
mov eax, dword [edx + 0x34]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [edx + 0x12c]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x84], 2
je 0x53c1fc
mov eax, dword [eax + 8]
test eax, eax
je 0x53c1fc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x53c21e
mov ecx, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x84], ecx
je 0x53c21e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x84], 0
jne 0x53c517
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x12c]
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x84], 2
je 0x53c256
mov eax, dword [eax + 8]
test eax, eax
je 0x53c256
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x53c278
mov ecx, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x84], ecx
je 0x53c278
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53c28b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c290
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
test ecx, ecx
je 0x53c52a
mov edx, dword [esp + 0x84]
cmp edx, 1
je 0x53c2d0
test edx, edx
jne 0x53c52a
mov ecx, dword [ecx]
test ecx, ecx
je 0x53c2d0
cmp ecx, 3
je 0x53c2d0
cmp ecx, 4
je 0x53c2d0
cmp ecx, 5
je 0x53c2d0
cmp ecx, 6
jne 0x53c52a
cmp dword [esp + 0x7c], 0
jne 0x53c3c8
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x28c]
cmp dword [ecx + 0xa8], 0
mov dword [esp + 0x7c], 1
je 0x53c316
test eax, eax
je 0x53c306
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c30b
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + ebp]
mov ecx, dword [edx + 0x18]
jmp 0x53c334
test eax, eax
je 0x53c326
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c32b
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x28]
test eax, eax
mov edx, dword [esp + 0x64]
mov dword [edx], ecx
je 0x53c34a
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c34f
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + ebp]
cmp dword [eax], 6
jne 0x53c391
test ecx, ecx
je 0x53c36a
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c36f
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp]
mov eax, dword [edx + 0x44]
mov edx, dword [esp + 0x64]
add dword [esp + 0x68], 1
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [edx + 8], eax
jmp 0x53b851
test ecx, ecx
je 0x53c3a1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c3a6
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov eax, dword [ecx + 0x30]
mov edx, dword [esp + 0x64]
add dword [esp + 0x68], 1
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [edx + 8], eax
jmp 0x53b851
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x28c]
cmp dword [edx + 0xa8], 0
je 0x53c3fb
test eax, eax
je 0x53c3eb
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c3f0
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp]
mov ecx, dword [ecx + 0x18]
jmp 0x53c419
test eax, eax
je 0x53c40b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x53c410
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
cmp eax, ecx
jl 0x53c456
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x28c]
cmp dword [ecx + 0xa8], 0
mov edi, dword [esp + 0x68]
mov esi, ebx
je 0x53c448
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
jmp 0x53c452
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
mov edi, dword [esp + 0x68]
mov ecx, dword [ebx + 4]
test ecx, ecx
mov esi, dword [esp + 0x64]
mov dword [esi], eax
je 0x53c46f
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c474
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + ebp]
cmp dword [edx], 6
jne 0x53c4cb
test ecx, ecx
je 0x53c48f
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c494
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 8]
mov edx, dword [ecx + ebp]
cmp eax, dword [edx + 0x44]
jg 0x53c502
mov edi, dword [esp + 0x68]
mov esi, ebx
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov esi, dword [esp + 0x64]
add dword [esp + 0x68], 1
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [esi + 8], eax
jmp 0x53b851
test ecx, ecx
je 0x53c4db
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x53c4e0
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 8]
mov edx, dword [ecx + ebp]
cmp eax, dword [edx + 0x30]
jg 0x53c502
mov edi, dword [esp + 0x68]
mov esi, ebx
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov esi, dword [esp + 0x64]
add dword [esp + 0x68], 1
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [esi + 8], eax
jmp 0x53b851
test edi, edi
jne 0x53c52a
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x64]
mov edx, dword [ecx]
mov dword [eax], edi
mov dword [eax + 8], edx
add dword [esp + 0x68], 1
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
jmp 0x53b851
mov esi, dword [ebp + 0x12c]
mov eax, dword [esi + 0x50]
test eax, eax
mov edi, 2
je 0x53c55c
mov eax, dword [eax + 8]
test eax, eax
je 0x53c55c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x53c577
mov edi, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x53c577
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 1
jne 0x53c721
cmp dword [ebp + 0x2d0], 0
je 0x53c721
mov ebp, dword [ebp + 0x2d0]
mov eax, dword [ebp + 0xc]
test eax, eax
mov ebp, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
jle 0x53c721
test ebp, ebp
jle 0x53c721
xor esi, esi
mov eax, ebx
mov dword [esp + 0x68], esi
call fcn.00548180
test eax, eax
jle 0x53c721
jmp 0x53c5d4
mov esi, dword [esp + 0x68]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x53c5e7
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x53c5ec
call fcn.00578ff3
mov ecx, dword [ebx + 4]
cmp dword [ecx + esi*4], 0
je 0x53c707
test ecx, ecx
je 0x53c60b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53c610
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x68]
mov edx, dword [ecx + eax*4]
cmp dword [edx], 4
jne 0x53c707
test ecx, ecx
je 0x53c635
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x53c63a
call fcn.00578ff3
mov ecx, dword [esp + 0x68]
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x28]
mov ebp, dword [eax + 0x2c]
mov edi, dword [eax + 0x30]
add eax, 0x28
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
sub ecx, ebp
push eax
add ecx, 5
push ecx
push eax
lea esi, [esp + 0x58]
mov dword [esp + 0x48], edx
call fcn.0052ea50
add esp, 0x10
test eax, eax
je 0x53c707
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
lea esi, [edi + 0xa]
add eax, dword [esp + 0x4c]
sub edi, dword [esp + 0x48]
add eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
mov ecx, eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x4c]
lea edi, [edi + edx + 0xa]
add eax, dword [esp + 0x54]
sar ecx, 1
add eax, ebp
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, esi
je 0x53c707
mov edx, eax
sub edx, ecx
je 0x53c707
mov edx, dword [esp + 0x60]
mov dword [edx + 0x2f0], 1
mov dword [edx + 0x2c4], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 0x2cc], eax
mov eax, dword [ecx + 8]
cmp eax, edi
mov dword [edx + 0x2c0], esi
mov dword [edx + 0x2c8], edi
jg 0x53c704
mov eax, edi
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x68]
add esi, 1
mov eax, ebx
mov dword [esp + 0x68], esi
call fcn.00548180
cmp esi, eax
jl 0x53c5d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x28