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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
xor ecx, ecx
cmp esi, ecx
je 0x5a9fdb
mov ebx, dword [eax + 0x4c]
cmp ebx, ecx
je 0x5a9fdb
cmp edi, ecx
je 0x5a9fdb
cmp dword [esp + 0x94], ecx
je 0x5a9fdb
add ebx, 0x7c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call fcn.0057b9a0
push edi
push 0x63d9ec
lea edi, [esp + 0x30]
call fcn.0057f5d0
add esp, 8
test eax, eax
je 0x5a886d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x84]
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.0057a810
test eax, eax
jle 0x5a8f76
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a889b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5a88a0
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
mov edx, dword [eax]
mov ecx, dword [esp + 0x74]
call fcn.00590f30
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x5a88c8
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5a88cd
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x5a8f64
movzx eax, byte [eax]
and eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x5a8f64
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
xor eax, eax
cmp dword [ecx + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x1c], eax
mov edi, ebp
mov esi, ebx
je 0x5a89b9
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 0x50]
mov edi, dword [eax + 8]
add eax, 8
call fcn.0057b9a0
mov ecx, dword [esp + 0x18]
push ecx
push edi
lea edi, [esp + 0x30]
call fcn.0057f5d0
mov edx, dword [esp + 0x88]
mov eax, dword [edx]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
mov dword [esp + 0x18], eax
add eax, ecx
add esp, 8
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x94], eax
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xc
mov dword [eax], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
add dword [ecx], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x1c], edx
jmp 0x5a89ed
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [esp + 0x7c]
mov eax, dword [edx]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xc
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x30], 2
jne 0x5a8b74
mov edi, ebp
mov esi, ebx
call fcn.0057a830
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 + 0x74]
mov ecx, dword [eax + 0x50]
mov edx, dword [ecx + 0x58]
mov eax, dword [edx + 0x3c]
test eax, eax
mov dword [esp + 0x14], eax
je 0x5a8b74
call fcn.0057a830
mov eax, dword [eax]
cmp dword [eax + 0x38], 0
je 0x5a8b74
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [ecx + 0x38]
mov edi, dword [esp + 0x14]
call fcn.005a00f0
mov esi, eax
test esi, esi
je 0x5a8b74
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
mov edi, dword [ecx]
push edx
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0x50]
call fcn.0057b0a0
mov ecx, dword [esp + 0x40]
add eax, edi
push eax
push ecx
lea esi, [esp + 0x60]
call fcn.00579ee0
add esp, 0x10
test eax, eax
je 0x5a8b74
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx]
mov edx, dword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [ecx + 3]
sub ecx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
lea esi, [edi + eax*2]
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x5c]
add eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov edi, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
lea ecx, [ecx + edx + 3]
add eax, esi
cdq
sub eax, edx
sar edi, 1
sar eax, 1
mov dword [esp + 0x48], ecx
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], eax
je 0x5a8b74
sub eax, edi
je 0x5a8b74
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x7c]
add eax, 3
mov dword [edx], eax
mov eax, dword [esp + 0x94]
lea ecx, [eax + ecx + 6]
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x94], ecx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add eax, 0x3c
mov dword [eax], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a8b87
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5a8b8c
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
test byte [eax], 8
mov edi, ebp
mov esi, ebx
je 0x5a8bd3
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x18], ecx
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
call fcn.00590740
jmp 0x5a8bfe
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x74]
mov esi, dword [ecx + 0x50]
mov edi, dword [eax + 4]
add eax, 4
call fcn.0057b9a0
mov edx, dword [esp + 0x18]
push edx
push edi
lea edi, [esp + 0x30]
call fcn.0057f5d0
add esp, 8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a8c11
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5a8c16
call fcn.005d29f1
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
lea esi, [ecx + edx]
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
lea edi, [edx + eax]
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
add eax, 0x1c
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x94], ecx
mov dword [eax], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x5a8c65
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jb 0x5a8c6a
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
test dword [eax], 0x2000
je 0x5a8c84
mov ecx, dword [esp + 0x74]
add ecx, 0xa8
jmp 0x5a8d02
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x40000
je 0x5a8ca7
mov edx, dword [esp + 0x74]
add edx, 0xe8
mov dword [esp + 0x10], edx
jmp 0x5a8d06
mov edi, ebp
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x400000
jne 0x5a8cf8
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x100
jne 0x5a8cf8
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x5a8ce9
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x5a8ebd
mov eax, dword [esp + 0x74]
add eax, 0x168
mov dword [esp + 0x10], eax
jmp 0x5a8d06
mov ecx, dword [esp + 0x74]
add ecx, 0x128
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
je 0x5a8ebd
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x6c], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5a8db0
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x14], ecx
call fcn.0057a830
mov dword [esp + 0x18], eax
call fcn.0057a830
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
push edx
push ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x7c]
add ecx, 0x1c
lea edx, [esp + 0x68]
call fcn.00590b50
test eax, eax
jne 0x5a8db0
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x18], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x24], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x14], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add eax, 0x4c
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], edx
xor eax, eax
cmp dword [ecx + 0x10], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
je 0x5a8e9e
mov edx, ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jle 0x5a8ea2
test eax, eax
jle 0x5a8ea2
call fcn.0057a830
mov eax, dword [eax]
add dword [eax + 0x4c], 1
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
add eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x54], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
add eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x58], edx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x94]
lea edx, [eax + ecx + 1]
mov eax, dword [esp + 0x7c]
add ecx, 1
add dword [eax], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov edx, dword [esp + 0x94]
cmp eax, edx
jg 0x5a8ed3
mov eax, edx
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a8ee8
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5a8eed
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp*4]
mov edi, dword [esp + 0x74]
mov dword [ecx + 0x2c], 1
mov esi, dword [edi + 0x50]
call fcn.0057bdb0
test eax, eax
jne 0x5a8f30
mov esi, dword [edi + 0x50]
call fcn.0057b050
mov ecx, dword [esp + 0x80]
mov edx, eax
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x7c]
add dword [eax], edx
mov eax, dword [esp + 0x90]
mov dword [ecx], eax
jmp 0x5a8f64
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x1c]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
cmp edi, eax
jg 0x5a8f4b
mov edi, eax
mov ecx, dword [esp + 0x74]
mov esi, dword [ecx + 0x50]
call fcn.0057b0a0
mov edx, eax
mov eax, dword [esp + 0x80]
add edx, edi
add dword [eax], edx
mov eax, ebx
add ebp, 1
call fcn.0057a810
cmp ebp, eax
jl 0x5a8888
mov ecx, dword [esp + 0x78]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
xor edi, edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
call fcn.0057bdb0
test eax, eax
jne 0x5a9327
nop
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 0x4c]
mov ecx, dword [eax + 0x80]
add eax, 0x7c
test ecx, ecx
jne 0x5a8fc8
xor eax, eax
jmp 0x5a8fd0
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x5a9327
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a8feb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a8ff0
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x5a931f
movzx esi, byte [ecx]
and esi, 1
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x5a931f
cmp dword [esp + 0x84], 0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
jne 0x5a9154
cmp dword [ecx + 0x90], 0
mov dword [esp + 0x84], 1
je 0x5a9098
test eax, eax
je 0x5a904c
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9051
call fcn.005d29f1
mov esi, dword [ebx + 4]
test esi, esi
je 0x5a9064
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5a9069
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [eax + 0x20]
mov esi, ebx
jge 0x5a908f
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x80], ecx
jmp 0x5a90bd
call fcn.0057a830
mov edx, dword [eax]
jmp 0x5a90b3
test eax, eax
je 0x5a90a8
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a90ad
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x5a912a
test ecx, ecx
je 0x5a90e0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a90e5
call fcn.005d29f1
mov esi, dword [ebx + 4]
test esi, esi
je 0x5a90f8
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5a90fd
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov edx, dword [esi + edi*4]
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x28]
mov esi, ebx
jle 0x5a92fb
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x7c], edx
add edi, 1
jmp 0x5a8fb0
test ecx, ecx
je 0x5a913a
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a913f
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x7c], ecx
add edi, 1
jmp 0x5a8fb0
cmp dword [ecx + 0x90], 0
je 0x5a91b5
test eax, eax
je 0x5a916d
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9172
call fcn.005d29f1
mov esi, dword [ebx + 4]
test esi, esi
je 0x5a9185
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5a918a
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [eax + 0x20]
mov esi, ebx
jge 0x5a91a9
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
jmp 0x5a91d3
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
jmp 0x5a91d3
test eax, eax
je 0x5a91c5
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a91ca
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x20]
cmp dword [esp + 0x80], eax
jl 0x5a923e
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov esi, ebx
je 0x5a922d
call fcn.0057a830
mov ebp, dword [eax]
add ebp, 0x20
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp]
jge 0x5a921a
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x80], eax
jmp 0x5a923e
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x80], edx
jmp 0x5a923e
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x4c]
cmp dword [eax + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x5a92a9
test ecx, ecx
je 0x5a9261
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9266
call fcn.005d29f1
mov esi, dword [ebx + 4]
test esi, esi
je 0x5a9279
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5a927e
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [esi + edi*4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [edx + 0x28]
mov esi, ebx
jle 0x5a929d
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
jmp 0x5a92c7
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
jmp 0x5a92c7
test ecx, ecx
je 0x5a92b9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a92be
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x28]
cmp dword [esp + 0x7c], eax
jg 0x5a931f
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x4c]
cmp dword [ecx + 0x90], 0
mov esi, ebx
je 0x5a9311
call fcn.0057a830
mov ebp, dword [eax]
add ebp, 0x28
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
cmp eax, dword [ebp]
jmp 0x5a910e
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x7c], ecx
add edi, 1
jmp 0x5a8fb0
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
mov dword [esp + 0x7c], eax
add edi, 1
jmp 0x5a8fb0
xor edi, edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x84], edi
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 0x80]
add eax, 0x7c
test ecx, ecx
jne 0x5a934f
xor eax, eax
jmp 0x5a9357
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x5a9dfd
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a9372
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9377
call fcn.005d29f1
mov esi, dword [ebx + 4]
mov eax, dword [esi + edi*4]
test eax, eax
je 0x5a9df5
movzx eax, byte [eax]
and eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x5a9df5
mov ebp, dword [esp + 0x74]
mov edx, dword [ebp + 0x4c]
cmp dword [edx + 0x90], 0
je 0x5a9423
test esi, esi
je 0x5a93bc
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5a93c1
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x5a93e0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a93e5
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x20]
add eax, 0x1c
cmp esi, edx
jle 0x5a9418
test ecx, ecx
je 0x5a9408
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a940d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
add ecx, 0xc
jmp 0x5a9441
test ecx, ecx
je 0x5a9433
mov eax, dword [ebx + 8]
sub eax, ecx
jmp 0x5a942c
test esi, esi
je 0x5a9433
mov eax, dword [ebx + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5a9438
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
add ecx, 0x1c
mov esi, dword [ecx + 0xc]
sub esi, dword [ecx + 4]
mov ecx, dword [ebp + 0x4c]
cmp dword [ecx + 0x90], 0
je 0x5a94ab
test eax, eax
je 0x5a9463
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9468
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov ebp, dword [eax + 0x18]
sub ebp, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x5a9487
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a948c
call fcn.005d29f1
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, 0xc
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a94be
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a94c3
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov ebp, dword [eax + 0x28]
sub ebp, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x5a94e2
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a94e7
call fcn.005d29f1
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, 0x1c
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
mov eax, dword [esi + 0x58]
test eax, eax
mov ebp, 2
je 0x5a9527
mov eax, dword [eax + 8]
test eax, eax
je 0x5a9527
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi + 0x58]
test esi, esi
je 0x5a9542
mov ebp, dword [esi + 0xb4]
mov esi, dword [esi + 8]
test esi, esi
je 0x5a9542
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jne 0x5a96e0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], ebp
je 0x5a95cf
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a956c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9571
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x5a9587
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a958c
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x5a95ab
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a95b0
call fcn.005d29f1
mov eax, dword [ebp]
mov ecx, dword [esp + 0x7c]
sub ecx, dword [eax + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
sub ecx, esi
push ecx
push 0
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a95e2
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a95e7
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
test byte [edx], 8
je 0x5a966d
test ecx, ecx
je 0x5a9602
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9607
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x5a961d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9622
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x28]
sub esi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x5a9641
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9646
call fcn.005d29f1
mov eax, dword [esp + 0x7c]
mov ecx, dword [ebp]
sub eax, esi
add eax, dword [esp + 0x80]
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
sub eax, dword [ecx + 0x20]
push eax
mov eax, dword [edx + edi*4]
push 0
add eax, 0x1c
push eax
jmp 0x5a96da
test ecx, ecx
je 0x5a967d
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9682
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea ebp, [ecx + edi*4]
je 0x5a9698
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a969d
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov esi, dword [eax + 0x28]
sub esi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x5a96bc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a96c1
call fcn.005d29f1
mov ecx, dword [ebp]
mov edx, dword [esp + 0x7c]
sub edx, dword [ecx + 0x20]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
sub edx, esi
push edx
push 0
add ecx, 0x1c
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esp + 0x84], 0
jne 0x5a9865
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x4c]
cmp dword [eax + 0x90], 0
mov ecx, dword [ebx + 4]
mov dword [esp + 0x84], 1
je 0x5a9790
test ecx, ecx
je 0x5a9720
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9725
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5a973b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9740
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x5a9770
test ecx, ecx
je 0x5a9760
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9765
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x10]
jmp 0x5a97ae
test ecx, ecx
je 0x5a9780
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9785
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x20]
jmp 0x5a97ae
test ecx, ecx
je 0x5a97a0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a97a5
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x20]
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 4], eax
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x5a9842
test ecx, ecx
je 0x5a97d8
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a97dd
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5a97f3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a97f8
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + edi*4]
mov edx, dword [edx + 0x18]
cmp edx, dword [eax + 0x28]
jle 0x5a982b
test ecx, ecx
je 0x5a9818
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a981d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x18]
jmp 0x5a9b56
test ecx, ecx
je 0x5a9b48
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jmp 0x5a9b46
test ecx, ecx
je 0x5a9852
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9857
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x28]
jmp 0x5a9b56
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x4c]
cmp dword [ecx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x5a98fc
test ecx, ecx
je 0x5a988c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9891
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5a98a7
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a98ac
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x5a98dc
test ecx, ecx
je 0x5a98cc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a98d1
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x10]
jmp 0x5a991a
test ecx, ecx
je 0x5a98ec
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a98f1
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 0x20]
jmp 0x5a991a
test ecx, ecx
je 0x5a990c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9911
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x20]
mov ebp, dword [esp + 0x78]
mov edx, dword [ebp + 4]
cmp edx, ecx
jge 0x5a992c
mov eax, edx
jmp 0x5a99de
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
cmp dword [ecx + 0x90], 0
je 0x5a99c0
test eax, eax
je 0x5a9950
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9955
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5a996b
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9970
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x5a99a0
test ecx, ecx
je 0x5a9990
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9995
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x10]
jmp 0x5a99de
test ecx, ecx
je 0x5a99b0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a99b5
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x20]
jmp 0x5a99de
test eax, eax
je 0x5a99d0
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a99d5
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 4], eax
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov ecx, dword [ebx + 4]
je 0x5a9a78
test ecx, ecx
je 0x5a9a08
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9a0d
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5a9a23
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9a28
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [esi]
mov eax, dword [ecx + edi*4]
mov edx, dword [edx + 0x18]
cmp edx, dword [eax + 0x28]
jle 0x5a9a58
test ecx, ecx
je 0x5a9a48
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9a4d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x18]
jmp 0x5a9a96
test ecx, ecx
je 0x5a9a68
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9a6d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov edx, dword [eax + edi*4]
mov ecx, dword [edx + 0x28]
jmp 0x5a9a96
test ecx, ecx
je 0x5a9a88
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9a8d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx + 0x28]
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jle 0x5a9aa4
mov eax, edx
jmp 0x5a9b56
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
cmp dword [ecx + 0x90], 0
je 0x5a9b38
test eax, eax
je 0x5a9ac8
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9acd
call fcn.005d29f1
mov ecx, dword [ebx + 4]
test ecx, ecx
lea esi, [ecx + edi*4]
je 0x5a9ae3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9ae8
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x28]
jle 0x5a9b18
test ecx, ecx
je 0x5a9b08
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9b0d
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x18]
jmp 0x5a9b56
test ecx, ecx
je 0x5a9b28
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9b2d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0x28]
jmp 0x5a9b56
test eax, eax
je 0x5a9b48
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9b4d
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0xc], eax
mov esi, dword [ecx + 0x50]
mov eax, dword [esi + 0x58]
test eax, eax
mov ebp, 2
je 0x5a9b7a
mov eax, dword [eax + 8]
test eax, eax
je 0x5a9b7a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5a9b95
mov ebp, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x5a9b95
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jne 0x5a9ddf
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a9bb0
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9bb5
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x5a9df5
movzx esi, byte [ecx]
and esi, 1
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x5a9df5
cmp dword [esp + 0x94], 0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x4c]
jne 0x5a9cc5
cmp dword [ecx + 0x90], 0
mov dword [esp + 0x94], 1
je 0x5a9c21
test eax, eax
je 0x5a9c11
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9c16
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x5a9c3f
test eax, eax
je 0x5a9c31
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9c36
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a9c58
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9c5d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test dword [ecx], 0x3442100
je 0x5a9c98
test eax, eax
je 0x5a9c7b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9c80
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
add edi, 1
jmp 0x5a9337
test eax, eax
je 0x5a9ca8
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9cad
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
add edi, 1
jmp 0x5a9337
cmp dword [ecx + 0x90], 0
je 0x5a9cee
test eax, eax
je 0x5a9cde
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9ce3
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0xc]
jmp 0x5a9d0c
test eax, eax
je 0x5a9cfe
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9d03
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [edx + 0x1c]
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
cmp eax, ecx
jl 0x5a9d3e
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x4c]
cmp dword [edx + 0x90], 0
mov esi, ebx
je 0x5a9d34
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
jmp 0x5a9d3e
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
mov ebp, dword [esp + 0x78]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a9d58
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5a9d5d
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edi*4]
test dword [ecx], 0x3442100
je 0x5a9da5
test eax, eax
je 0x5a9d7b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9d80
call fcn.005d29f1
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + edi*4]
cmp eax, dword [ecx + 0x54]
jg 0x5a9dd4
mov esi, ebx
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x54]
mov dword [ebp + 8], eax
add edi, 1
jmp 0x5a9337
test eax, eax
je 0x5a9db5
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x5a9dba
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + edi*4]
cmp eax, dword [edx + 0x24]
jg 0x5a9dd4
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp + 8], eax
add edi, 1
jmp 0x5a9337
test edi, edi
jne 0x5a9df5
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
mov dword [eax], edi
mov edx, dword [ecx]
mov dword [eax + 8], edx
add edi, 1
jmp 0x5a9337
mov esi, dword [ebp + 0x50]
mov eax, dword [esi + 0x58]
test eax, eax
mov edi, 2
je 0x5a9e1a
mov eax, dword [eax + 8]
test eax, eax
je 0x5a9e1a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x5a9e35
mov edi, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x5a9e35
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 1
jne 0x5a9fdb
cmp dword [ebp + 0x78], 0
je 0x5a9fdb
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jle 0x5a9fdb
test eax, eax
jle 0x5a9fdb
xor esi, esi
mov eax, ebx
mov dword [esp + 0x7c], esi
call fcn.0057a810
test eax, eax
jle 0x5a9fdb
jmp 0x5a9e84
mov esi, dword [esp + 0x7c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5a9e97
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5a9e9c
call fcn.005d29f1
mov ecx, dword [ebx + 4]
cmp dword [ecx + esi*4], 0
je 0x5a9fc1
test ecx, ecx
je 0x5a9ebb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x7c], eax
jb 0x5a9ec0
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx + eax*4]
test dword [edx], 0x800
je 0x5a9fc1
test ecx, ecx
je 0x5a9ee8
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x7c], eax
jb 0x5a9eed
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x7c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
mov ecx, dword [esp + 0x34]
add eax, 0x1c
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x50]
push ecx
push edx
call fcn.0057b0a0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x38]
sub ecx, ebp
add eax, ecx
push eax
push edx
lea esi, [esp + 0x70]
call fcn.00579ee0
add esp, 0x10
test eax, eax
je 0x5a9fc1
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x6c]
lea esi, [edi + 0xa]
sub edi, dword [esp + 0x60]
add eax, ebp
add eax, dword [esp + 0x64]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x68]
lea edi, [edi + eax + 0xa]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x64]
sar ecx, 1
add eax, ebp
add eax, dword [esp + 0x6c]
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, esi
je 0x5a9fc1
mov edx, eax
sub edx, ecx
je 0x5a9fc1
mov edx, dword [esp + 0x74]
mov dword [edx + 0x98], 1
mov dword [edx + 0x6c], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 0x68], esi
mov dword [edx + 0x70], edi
mov dword [edx + 0x74], eax
mov eax, dword [ecx + 8]
cmp eax, edi
jg 0x5a9fbe
mov eax, edi
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x7c]
add esi, 1
mov eax, ebx
mov dword [esp + 0x7c], esi
call fcn.0057a810
cmp esi, eax
jl 0x5a9e80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x24