Function at 0x554040
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 + 0x4c]
xor ecx, ecx
cmp esi, ecx
push edi
mov edi, dword [esp + 0x80]
je 0x55574b
mov ebx, dword [eax + 0x48]
cmp ebx, ecx
je 0x55574b
cmp edi, ecx
je 0x55574b
cmp dword [esp + 0x84], ecx
je 0x55574b
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 0x5540b2
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 0x554635
lea ecx, [ecx]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5540e3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5540e8
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 0x554114
cmp dword [eax], 1
jne 0x554114
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x554124
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x554129
call fcn.00578ff3
mov edi, dword [ebx + 4]
mov ecx, dword [esp + 0x60]
add edi, esi
mov esi, dword [ecx + 0x4c]
call fcn.00529db0
mov edi, dword [edi]
test edi, edi
je 0x554623
cmp eax, 1
je 0x55416f
test eax, eax
jne 0x554623
mov edi, dword [edi]
test edi, edi
je 0x55416f
cmp edi, 3
je 0x55416f
cmp edi, 4
je 0x55416f
cmp edi, 5
je 0x55416f
cmp edi, 6
jne 0x554623
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x48]
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 0x554223
call fcn.0041dda0
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x4c]
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 0x554254
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 + 0x48]
cmp dword [edx + 0x34], 2
jne 0x5543bc
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 + 0x4c]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + 0x3c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5543bc
call fcn.0041dda0
mov eax, dword [eax]
cmp dword [eax + 0x10], 0
je 0x5543bc
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 0x5543bc
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 dword [esp + 0x18], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov edi, dword [ecx]
push edx
push eax
lea ecx, [edi + 5]
push ecx
push eax
lea esi, [esp + 0x58]
call fcn.0052ea50
add esp, 0x10
test eax, eax
je 0x5543bc
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]
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [edx]
lea esi, [edi + eax*2]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x54]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
lea ecx, [ecx + edx + 3]
add eax, esi
cdq
sub eax, edx
sar edi, 1
sar eax, 1
mov dword [esp + 0x40], ecx
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], eax
je 0x5543bc
sub eax, edi
je 0x5543bc
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x68]
add eax, 3
mov dword [edx], eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx + 6]
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x10], ecx
call fcn.0041dda0
mov eax, dword [eax]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add eax, 0x3c
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5543cf
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5543d4
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
cmp dword [eax], 3
mov edi, ebp
mov esi, ebx
jne 0x554404
call fcn.0041dda0
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov eax, dword [eax]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [eax + 4]
push ecx
lea edi, [esp + 0x30]
call fcn.00542460
jmp 0x55442e
call fcn.0041dda0
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x4c]
mov edi, eax
call fcn.005299f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
push ecx
mov ecx, dword [edx + 4]
push ecx
lea edi, [esp + 0x30]
call fcn.0052f490
add esp, 8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x554441
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x554446
call fcn.00578ff3
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
mov edx, dword [edx]
lea esi, [ecx + eax]
mov eax, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
add eax, 0x28
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x28]
add dword [esp + 0x10], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x554496
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x55449b
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp*4]
cmp dword [ecx], 6
jne 0x5545a7
mov edi, ebp
mov esi, ebx
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x24], eax
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x14], edx
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x18], ecx
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x1c], eax
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 + 0xb0], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
je 0x55458a
mov edx, ecx
mov ecx, dword [edx + 0xb0]
mov eax, dword [ecx + 0xc]
test eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jle 0x55458e
test ecx, ecx
jle 0x55458e
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]
lea edx, [ecx + eax + 1]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x68]
add dword [eax], ecx
mov dword [esp + 0x10], edx
mov esi, eax
jmp 0x5545ab
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
cmp eax, edx
mov edi, dword [esp + 0x6c]
jg 0x5545bf
mov eax, edx
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5545d4
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5545d9
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 + 0x4c]
mov eax, dword [edx + 0x50]
cmp dword [eax + 0xb0], 0
jne 0x55460a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x7c]
add ecx, 0xa
add dword [esi], ecx
mov dword [edi], edx
jmp 0x554623
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
jg 0x55461e
mov eax, ecx
add eax, 5
add dword [edi], eax
mov eax, ebx
add ebp, 1
call fcn.00548180
cmp ebp, eax
jl 0x5540d0
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov esi, dword [ebp + 0x4c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
call fcn.00529db0
test eax, eax
jne 0x554a2b
xor edi, edi
jmp 0x554670
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax + 0x98]
add eax, 0x94
test ecx, ecx
jne 0x554686
xor eax, eax
jmp 0x55468e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x554a2b
mov esi, dword [ebp + 0x4c]
mov eax, dword [esi + 0x50]
test eax, eax
mov ebp, 2
je 0x5546b3
mov eax, dword [eax + 8]
test eax, eax
je 0x5546b3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5546ce
mov ebp, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x5546ce
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5546e1
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5546e6
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x554a1f
cmp ebp, 1
je 0x55471f
test ebp, ebp
jne 0x554a1f
mov ecx, dword [ecx]
test ecx, ecx
je 0x55471f
cmp ecx, 3
je 0x55471f
cmp ecx, 4
je 0x55471f
cmp ecx, 5
je 0x55471f
cmp ecx, 6
jne 0x554a1f
cmp dword [esp + 0x70], 0
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x48]
jne 0x55485c
cmp dword [edx + 0xa8], 0
mov dword [esp + 0x70], 1
je 0x55479b
test eax, eax
je 0x554752
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x554757
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x55476a
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x55476f
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [esi + edi*4]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x2c]
mov esi, ebx
jge 0x554792
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x6c], edx
jmp 0x5547bd
call fcn.0041dda0
mov eax, dword [eax]
jmp 0x5547b6
test eax, eax
je 0x5547ab
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5547b0
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x48]
cmp dword [eax + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x55482e
test ecx, ecx
je 0x5547e0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5547e5
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x5547f8
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5547fd
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 0x5549f7
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x68], eax
add edi, 1
jmp 0x554670
test ecx, ecx
je 0x55483e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554843
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0x34]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x68], edx
add edi, 1
jmp 0x554670
cmp dword [edx + 0xa8], 0
je 0x5548bd
test eax, eax
je 0x554875
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x55487a
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x55488d
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x554892
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [esi + edi*4]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x2c]
mov esi, ebx
jge 0x5548b1
call fcn.0041dda0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
jmp 0x5548db
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x2c]
jmp 0x5548db
test eax, eax
je 0x5548cd
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5548d2
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x2c]
cmp dword [esp + 0x6c], eax
jl 0x55493a
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x48]
cmp dword [eax + 0xa8], 0
mov esi, ebx
je 0x55492c
call fcn.0041dda0
mov ebp, dword [eax]
add ebp, 0x2c
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp]
jge 0x55491c
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x6c], ecx
jmp 0x55493a
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x6c], eax
jmp 0x55493a
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x48]
cmp dword [ecx + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x5549a5
test ecx, ecx
je 0x55495d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554962
call fcn.00578ff3
mov esi, dword [ebx + 4]
test esi, esi
je 0x554975
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x55497a
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x24]
cmp edx, dword [eax + 0x34]
mov esi, ebx
jle 0x554999
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
jmp 0x5549c3
call fcn.0041dda0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x34]
jmp 0x5549c3
test ecx, ecx
je 0x5549b5
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5549ba
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x34]
cmp dword [esp + 0x68], eax
jg 0x554a1f
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0xa8], 0
mov esi, ebx
je 0x554a11
call fcn.0041dda0
mov ebp, dword [eax]
add ebp, 0x34
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
cmp ecx, dword [ebp]
jmp 0x55480e
call fcn.0041dda0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x68], edx
add edi, 1
jmp 0x554670
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x68], ecx
mov ebp, dword [esp + 0x60]
add edi, 1
jmp 0x554670
xor edi, edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x70], edi
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x98]
add eax, 0x94
test ecx, ecx
jne 0x554a52
xor eax, eax
jmp 0x554a5a
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
mov ebp, 2
jge 0x555588
mov esi, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x554a7f
mov eax, dword [eax + 8]
test eax, eax
je 0x554a7f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x554a9a
mov ebp, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x554a9a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x554aad
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554ab2
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x555580
cmp ebp, 1
je 0x554aeb
test ebp, ebp
jne 0x555580
mov eax, dword [eax]
test eax, eax
je 0x554aeb
cmp eax, 3
je 0x554aeb
cmp eax, 4
je 0x554aeb
cmp eax, 5
je 0x554aeb
cmp eax, 6
jne 0x555580
mov ebp, dword [esp + 0x60]
mov edx, dword [ebp + 0x48]
cmp dword [edx + 0xa8], 0
je 0x554b67
test ecx, ecx
je 0x554b0b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554b10
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x24]
sub esi, dword [eax + 0x1c]
add eax, 0x18
test ecx, ecx
je 0x554b2f
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554b34
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 0x34]
sub edx, dword [eax + 0x2c]
add eax, 0x28
cmp esi, edx
jle 0x554b67
test ecx, ecx
je 0x554b57
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554b5c
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
add ecx, 0x18
jmp 0x554b85
test ecx, ecx
je 0x554b77
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554b7c
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
add ecx, 0x28
mov esi, dword [ecx + 0xc]
sub esi, dword [ecx + 4]
mov ecx, dword [ebp + 0x48]
cmp dword [ecx + 0xa8], 0
je 0x554bef
test eax, eax
je 0x554ba7
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x554bac
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov ebp, dword [eax + 0x24]
sub ebp, dword [eax + 0x1c]
add eax, 0x18
test ecx, ecx
je 0x554bcb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554bd0
call fcn.00578ff3
mov eax, esi
sub eax, ebp
add eax, 1
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
push eax
mov eax, dword [edx + edi*4]
push 0
add eax, 0x18
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x554c02
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554c07
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov ebp, dword [eax + 0x34]
sub ebp, dword [eax + 0x2c]
add eax, 0x28
test ecx, ecx
je 0x554c26
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554c2b
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, ebp
add eax, 1
cdq
sub eax, edx
mov edx, dword [ecx + edi*4]
sar eax, 1
push eax
push 0
add edx, 0x28
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x60]
mov esi, dword [eax + 0x4c]
mov eax, dword [esi + 0x50]
test eax, eax
mov ebp, 2
je 0x554c6b
mov eax, dword [eax + 8]
test eax, eax
je 0x554c6b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x554c86
mov ebp, dword [esi + 0xb0]
mov esi, dword [esi + 8]
test esi, esi
je 0x554c86
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jne 0x554e21
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0xa8], ebp
je 0x554d13
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x554cb0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554cb5
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x554ccb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554cd0
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x24]
sub esi, dword [eax + 0x1c]
add eax, 0x18
test ecx, ecx
je 0x554cef
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554cf4
call fcn.00578ff3
mov eax, dword [ebp]
mov ecx, dword [esp + 0x68]
sub ecx, dword [eax + 0x1c]
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
sub ecx, esi
push ecx
push 0
add eax, 0x18
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x554d26
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554d2b
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
cmp dword [edx], 3
jne 0x554dae
test ecx, ecx
je 0x554d46
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554d4b
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x554d61
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554d66
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x34]
sub esi, dword [eax + 0x2c]
add eax, 0x28
test ecx, ecx
je 0x554d85
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554d8a
call fcn.00578ff3
mov eax, dword [esp + 0x68]
mov ecx, dword [ebp]
sub eax, esi
add eax, dword [esp + 0x6c]
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
sub eax, dword [ecx + 0x2c]
push eax
mov eax, dword [edx + edi*4]
push 0
add eax, 0x28
push eax
jmp 0x554e1b
test ecx, ecx
je 0x554dbe
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554dc3
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x554dd9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554dde
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x34]
sub esi, dword [eax + 0x2c]
add eax, 0x28
test ecx, ecx
je 0x554dfd
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554e02
call fcn.00578ff3
mov ecx, dword [ebp]
mov edx, dword [esp + 0x68]
sub edx, dword [ecx + 0x2c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
sub edx, esi
push edx
push 0
add ecx, 0x28
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esp + 0x70], 0
jne 0x554fa0
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x48]
cmp dword [eax + 0xa8], 0
mov ecx, dword [ebx + 4]
mov dword [esp + 0x70], 1
je 0x554ecb
test ecx, ecx
je 0x554e5b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554e60
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x554e76
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554e7b
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x2c]
jge 0x554eab
test ecx, ecx
je 0x554e9b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554ea0
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x1c]
jmp 0x554ee9
test ecx, ecx
je 0x554ebb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554ec0
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x2c]
jmp 0x554ee9
test ecx, ecx
je 0x554edb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554ee0
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x2c]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [ebp + 4], eax
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x554f7d
test ecx, ecx
je 0x554f13
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554f18
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x554f2e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554f33
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + edi*4]
mov edx, dword [edx + 0x24]
cmp edx, dword [eax + 0x34]
jle 0x554f66
test ecx, ecx
je 0x554f53
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554f58
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x24]
jmp 0x555291
test ecx, ecx
je 0x555283
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jmp 0x555281
test ecx, ecx
je 0x554f8d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554f92
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x34]
jmp 0x555291
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x48]
cmp dword [ecx + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x555037
test ecx, ecx
je 0x554fc7
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554fcc
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x554fe2
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x554fe7
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x2c]
jge 0x555017
test ecx, ecx
je 0x555007
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x55500c
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x1c]
jmp 0x555055
test ecx, ecx
je 0x555027
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x55502c
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 0x2c]
jmp 0x555055
test ecx, ecx
je 0x555047
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x55504c
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x2c]
mov ebp, dword [esp + 0x64]
mov edx, dword [ebp + 4]
cmp edx, ecx
jge 0x555067
mov eax, edx
jmp 0x555119
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x48]
cmp dword [ecx + 0xa8], 0
je 0x5550fb
test eax, eax
je 0x55508b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x555090
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5550a6
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5550ab
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x2c]
jge 0x5550db
test ecx, ecx
je 0x5550cb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5550d0
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x1c]
jmp 0x555119
test ecx, ecx
je 0x5550eb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5550f0
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x2c]
jmp 0x555119
test eax, eax
je 0x55510b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x555110
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x2c]
mov ecx, dword [esp + 0x60]
mov dword [ebp + 4], eax
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0xa8], 0
mov ecx, dword [ebx + 4]
je 0x5551b3
test ecx, ecx
je 0x555143
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555148
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x55515e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555163
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + edi*4]
mov edx, dword [edx + 0x24]
cmp edx, dword [eax + 0x34]
jle 0x555193
test ecx, ecx
je 0x555183
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555188
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x24]
jmp 0x5551d1
test ecx, ecx
je 0x5551a3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5551a8
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 0x34]
jmp 0x5551d1
test ecx, ecx
je 0x5551c3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5551c8
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x34]
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jle 0x5551df
mov eax, edx
jmp 0x555291
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x48]
cmp dword [ecx + 0xa8], 0
je 0x555273
test eax, eax
je 0x555203
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x555208
call fcn.00578ff3
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x55521e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555223
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x34]
jle 0x555253
test ecx, ecx
je 0x555243
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555248
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x24]
jmp 0x555291
test ecx, ecx
je 0x555263
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555268
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x34]
jmp 0x555291
test eax, eax
je 0x555283
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x555288
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x34]
mov ecx, dword [esp + 0x60]
mov dword [ebp + 0xc], eax
mov esi, dword [ecx + 0x4c]
mov eax, dword [esi + 0x50]
test eax, eax
mov ebp, 2
je 0x5552b5
mov eax, dword [eax + 8]
test eax, eax
je 0x5552b5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5552d0
mov ebp, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x5552d0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jne 0x55556d
mov edx, dword [esp + 0x60]
mov esi, dword [edx + 0x4c]
mov eax, dword [esi + 0x50]
test eax, eax
mov ebp, 2
je 0x5552f9
mov eax, dword [eax + 8]
test eax, eax
je 0x5552f9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x555314
mov ebp, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x555314
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x555327
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x55532c
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x555580
cmp ebp, 1
je 0x555365
test ebp, ebp
jne 0x555580
mov ecx, dword [ecx]
test ecx, ecx
je 0x555365
cmp ecx, 3
je 0x555365
cmp ecx, 4
je 0x555365
cmp ecx, 5
je 0x555365
cmp ecx, 6
jne 0x555580
cmp dword [esp + 0x80], 0
jne 0x55544f
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0xa8], 0
mov dword [esp + 0x80], 1
je 0x5553ae
test eax, eax
je 0x55539e
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5553a3
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x18]
jmp 0x5553cc
test eax, eax
je 0x5553be
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5553c3
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x64]
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5553e5
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5553ea
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
cmp dword [edx], 6
jne 0x555422
test ecx, ecx
je 0x555405
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x55540a
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x44]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 8], eax
add edi, 1
jmp 0x554a38
test ecx, ecx
je 0x555432
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555437
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x30]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 8], eax
add edi, 1
jmp 0x554a38
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x48]
cmp dword [ecx + 0xa8], 0
je 0x55547f
test eax, eax
je 0x55546f
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x555474
call fcn.00578ff3
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x18]
jmp 0x55549d
test eax, eax
je 0x55548f
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x555494
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [edx + 0x28]
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
cmp eax, ecx
jl 0x5554cf
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x48]
cmp dword [edx + 0xa8], 0
mov esi, ebx
je 0x5554c5
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
jmp 0x5554cf
call fcn.0041dda0
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
mov ebp, dword [esp + 0x64]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5554e9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5554ee
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
cmp dword [edx], 6
jne 0x555533
test ecx, ecx
je 0x555509
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x55550e
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + edi*4]
cmp eax, dword [edx + 0x44]
jg 0x555562
mov esi, ebx
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov dword [ebp + 8], eax
add edi, 1
jmp 0x554a38
test ecx, ecx
je 0x555543
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x555548
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + edi*4]
cmp eax, dword [edx + 0x30]
jg 0x555562
mov esi, ebx
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp + 8], eax
add edi, 1
jmp 0x554a38
test edi, edi
jne 0x555580
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
mov dword [eax], edi
mov edx, dword [ecx]
mov dword [eax + 8], edx
add edi, 1
jmp 0x554a38
mov edi, dword [esi + 0x4c]
mov eax, dword [edi + 0x50]
test eax, eax
je 0x5555a0
mov eax, dword [eax + 8]
test eax, eax
je 0x5555a0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x50]
test eax, eax
je 0x5555bb
mov ebp, dword [eax + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x5555bb
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebp, 1
jne 0x55574b
cmp dword [esi + 0x74], 0
je 0x55574b
mov esi, dword [esi + 0x74]
mov eax, dword [esi + 0xc]
test eax, eax
mov esi, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
jle 0x55574b
test esi, esi
jle 0x55574b
xor esi, esi
mov eax, ebx
mov dword [esp + 0x68], esi
call fcn.00548180
test eax, eax
jle 0x55574b
jmp 0x55560a
mov esi, dword [esp + 0x68]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x55561d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x555622
call fcn.00578ff3
mov ecx, dword [ebx + 4]
cmp dword [ecx + esi*4], 0
je 0x555731
test ecx, ecx
je 0x555641
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x555646
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x68]
mov edx, dword [ecx + eax*4]
cmp dword [edx], 4
jne 0x555731
test ecx, ecx
je 0x55566b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x68], eax
jb 0x555670
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 0x555731
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 0x555731
mov edx, eax
sub edx, ecx
je 0x555731
mov edx, dword [esp + 0x60]
mov dword [edx + 0x94], 1
mov dword [edx + 0x68], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 0x64], esi
mov dword [edx + 0x6c], edi
mov dword [edx + 0x70], eax
mov eax, dword [ecx + 8]
cmp eax, edi
jg 0x55572e
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 0x555606
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x28